bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Incorrect waitpid-handling in buffer.c.


From: Pierre Asselin
Subject: Re: Incorrect waitpid-handling in buffer.c.
Date: Sun, 2 Feb 2003 01:56:42 +0000 (UTC)
User-agent: nn/6.6.4

In <address@hidden> "Johannes =?iso-8859-1?q?Gr=F8dem?=" <address@hidden> 
writes:

>+      do
>+       n = waitpid (bc->child_pid, (int *) 0, 0);
>+      while (n == -1 && errno == EINTR);

Don't you want to reset errno between syscalls?

      do {
         errno= 0; n = waitpid (bc->child_pid, (int *) 0, 0);
      } while (n == -1 && errno == EINTR);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]