Author: delphij
Date: Tue Apr 27 17:57:04 2010
New Revision: 207284
URL: http://svn.freebsd.org/changeset/base/207284

Log:
  Use _exit(2) system call directly instead of using exit(3) in signal
  handler, as the latter is not guaranteed to be signal safe, and we
  do not really care about flushing the stream during SIGINT.
  
  Suggested by: Maxim Konovalov <maxim.konovalov gmail com>
  MFC after:    13 days

Modified:
  head/usr.bin/gzip/gzip.c

Modified: head/usr.bin/gzip/gzip.c
==============================================================================
--- head/usr.bin/gzip/gzip.c    Tue Apr 27 17:50:43 2010        (r207283)
+++ head/usr.bin/gzip/gzip.c    Tue Apr 27 17:57:04 2010        (r207284)
@@ -1178,7 +1178,7 @@ sigint_handler(int signo __unused)
 
        if (remove_file != NULL)
                unlink(remove_file);
-       exit(2);
+       _exit(2);
 }
 #endif
 
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to