cvs commit: patches/diffutils diffutils-2.8.4-sdiff-2.patch

jim at linuxfromscratch.org jim at linuxfromscratch.org
Tue Sep 9 14:50:30 PDT 2003


jim         03/09/09 15:50:30

  Added:       diffutils diffutils-2.8.4-sdiff-2.patch
  Log:
  added diffutils-2.8.4-sdiff-2.patch
  
  Revision  Changes    Path
  1.1                  patches/diffutils/diffutils-2.8.4-sdiff-2.patch
  
  Index: diffutils-2.8.4-sdiff-2.patch
  ===================================================================
  Submitted By: Jim Gifford (patches at jg555 dot com)
  Date: 09-09-2003
  Initial Package Version: diffutils 2.8.4
  Origin: converter at dalnet-perl.org Gentoo Bug #11728
  Description: sdiff returns -1 status on exit. This patch fixes sdiff
               to return a status of 0 on exit
  
  diff -Naur diffutils-2.8.4.orig/src/sdiff.c diffutils-2.8.4/src/sdiff.c
  --- diffutils-2.8.4.orig/src/sdiff.c	2002-06-17 05:55:42.000000000 +0000
  +++ diffutils-2.8.4/src/sdiff.c	2003-09-09 20:25:53.000000000 +0000
  @@ -692,7 +692,7 @@
         ck_fclose (out);
   
         {
  -	int wstatus;
  +	int wstatus = 0;
   	int werrno = 0;
   
   #if ! (HAVE_WORKING_FORK || HAVE_WORKING_VFORK)
  @@ -701,11 +701,6 @@
   	  werrno = errno;
   #else
   	ck_fclose (diffout);
  -	while (waitpid (diffpid, &wstatus, 0) < 0)
  -	  if (errno == EINTR)
  -	    checksigs ();
  -	  else
  -	    perror_fatal ("waitpid");
   	diffpid = 0;
   #endif
   
  
  
  



More information about the patches mailing list