svn commit: r310538 - user/pho/stress2/testcases/shm

Peter Holm pho at FreeBSD.org
Sun Dec 25 12:00:58 UTC 2016


Author: pho
Date: Sun Dec 25 12:00:56 2016
New Revision: 310538
URL: https://svnweb.freebsd.org/changeset/base/310538

Log:
  exit(3) is really needed after perror(3).
  
  Reported by:	kib
  Sponsored by:	Dell EMC Isilon

Modified:
  user/pho/stress2/testcases/shm/shm.c

Modified: user/pho/stress2/testcases/shm/shm.c
==============================================================================
--- user/pho/stress2/testcases/shm/shm.c	Sun Dec 25 10:00:36 2016	(r310537)
+++ user/pho/stress2/testcases/shm/shm.c	Sun Dec 25 12:00:56 2016	(r310538)
@@ -138,7 +138,7 @@ test(void)
 	pid = fork();
 	if (pid == -1) {
 		perror("fork");
-		_exit(2);
+		exit(2);
 	}
 
 	if (pid == 0) {	/* child */


More information about the svn-src-user mailing list