Magellan Linux

Annotation of /trunk/diffutils/patches/diffutils-2.8.4-sdiff-no-waitpid.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 144 - (hide annotations) (download)
Tue May 8 20:06:05 2007 UTC (17 years, 1 month ago) by niro
File size: 525 byte(s)
-import

1 niro 144 --- diffutils-2.8.4/src/sdiff.c.orig 2002-06-17 00:55:42.000000000 -0500
2     +++ diffutils-2.8.4/src/sdiff.c 2003-01-08 03:04:02.000000000 -0600
3     @@ -692,7 +692,7 @@
4     ck_fclose (out);
5    
6     {
7     - int wstatus;
8     + int wstatus = 0;
9     int werrno = 0;
10    
11     #if ! (HAVE_WORKING_FORK || HAVE_WORKING_VFORK)
12     @@ -701,11 +701,6 @@
13     werrno = errno;
14     #else
15     ck_fclose (diffout);
16     - while (waitpid (diffpid, &wstatus, 0) < 0)
17     - if (errno == EINTR)
18     - checksigs ();
19     - else
20     - perror_fatal ("waitpid");
21     diffpid = 0;
22     #endif
23