From owner-svn-src-user@freebsd.org Sun Dec 25 09:58:50 2016 Return-Path: Delivered-To: svn-src-user@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7742EC8FEF5 for ; Sun, 25 Dec 2016 09:58:50 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 470E7B68; Sun, 25 Dec 2016 09:58:50 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id uBP9wnrw038119; Sun, 25 Dec 2016 09:58:49 GMT (envelope-from pho@FreeBSD.org) Received: (from pho@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id uBP9wnUJ038117; Sun, 25 Dec 2016 09:58:49 GMT (envelope-from pho@FreeBSD.org) Message-Id: <201612250958.uBP9wnUJ038117@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: pho set sender to pho@FreeBSD.org using -f From: Peter Holm Date: Sun, 25 Dec 2016 09:58:49 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r310536 - in user/pho/stress2/testcases: shm socket X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2016 09:58:50 -0000 Author: pho Date: Sun Dec 25 09:58:49 2016 New Revision: 310536 URL: https://svnweb.freebsd.org/changeset/base/310536 Log: Use _exit(2). Sponsored by: Dell EMC Isilon Modified: user/pho/stress2/testcases/shm/shm.c user/pho/stress2/testcases/socket/socket.c Modified: user/pho/stress2/testcases/shm/shm.c ============================================================================== --- user/pho/stress2/testcases/shm/shm.c Sun Dec 25 09:54:28 2016 (r310535) +++ user/pho/stress2/testcases/shm/shm.c Sun Dec 25 09:58:49 2016 (r310536) @@ -138,7 +138,7 @@ test(void) pid = fork(); if (pid == -1) { perror("fork"); - exit(2); + _exit(2); } if (pid == 0) { /* child */ @@ -159,7 +159,7 @@ test(void) i = (i + 1) % (10 * pgsize); Sig(0); } - exit(0); + _exit(0); } else { /* parent */ i = 0; Modified: user/pho/stress2/testcases/socket/socket.c ============================================================================== --- user/pho/stress2/testcases/socket/socket.c Sun Dec 25 09:54:28 2016 (r310535) +++ user/pho/stress2/testcases/socket/socket.c Sun Dec 25 09:58:49 2016 (r310536) @@ -110,7 +110,7 @@ test(void) err(1, "socketpair()"); if ((pid = fork()) == 0) { writer(); - exit(EXIT_SUCCESS); + _exit(EXIT_SUCCESS); } else if (pid > 0) { reader();