Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Apr 2010 17:57:04 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r207284 - head/usr.bin/gzip
Message-ID:  <201004271757.o3RHv4ZJ080297@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004271757.o3RHv4ZJ080297>