svn commit: r207284 - head/usr.bin/gzip

Xin LI delphij at FreeBSD.org
Tue Apr 27 17:57:05 UTC 2010


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
 


More information about the svn-src-all mailing list