From owner-svn-src-all@FreeBSD.ORG Tue Apr 27 17:57:05 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20A271065672; Tue, 27 Apr 2010 17:57:05 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 0E3AC8FC1D; Tue, 27 Apr 2010 17:57:05 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o3RHv4UW080299; Tue, 27 Apr 2010 17:57:04 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o3RHv4ZJ080297; Tue, 27 Apr 2010 17:57:04 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201004271757.o3RHv4ZJ080297@svn.freebsd.org> From: Xin LI Date: Tue, 27 Apr 2010 17:57:04 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r207284 - head/usr.bin/gzip X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 17:57:05 -0000 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 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