PERFORCE change 174236 for review
Robert Watson
rwatson at FreeBSD.org
Wed Feb 3 13:59:14 UTC 2010
http://p4web.freebsd.org/chv.cgi?CH=174236
Change 174236 by rwatson at rwatson_vimage_client on 2010/02/03 13:58:36
Use _exit(0) not exit(0) after fork, or I/O may be flushed more than
once.
Affected files ...
.. //depot/projects/trustedbsd/capabilities/src/tools/tools/syscall_timing/syscall_timing.c#11 edit
Differences ...
==== //depot/projects/trustedbsd/capabilities/src/tools/tools/syscall_timing/syscall_timing.c#11 (text+ko) ====
@@ -371,7 +371,7 @@
if (pid < 0)
err(-1, "test_fork: fork");
if (pid == 0)
- exit(0);
+ _exit(0);
if (waitpid(pid, NULL, 0) < 0)
err(-1, "test_fork: waitpid");
benchmark_start();
@@ -380,7 +380,7 @@
if (pid < 0)
err(-1, "test_fork: fork");
if (pid == 0)
- exit(0);
+ _exit(0);
if (waitpid(pid, NULL, 0) < 0)
err(-1, "test_fork: waitpid");
}
@@ -397,7 +397,7 @@
if (pid < 0)
err(-1, "test_vfork: vfork");
if (pid == 0)
- exit(0);
+ _exit(0);
if (waitpid(pid, NULL, 0) < 0)
err(-1, "test_vfork: waitpid");
benchmark_start();
@@ -406,7 +406,7 @@
if (pid < 0)
err(-1, "test_vfork: vfork");
if (pid == 0)
- exit(0);
+ _exit(0);
if (waitpid(pid, NULL, 0) < 0)
err(-1, "test_vfork: waitpid");
}
@@ -424,7 +424,7 @@
if (pid < 0)
err(-1, "test_pdfork: pdfork");
if (pid == 0)
- exit(0);
+ _exit(0);
pollfd.fd = fd;
pollfd.events = POLLHUP;
pollfd.revents = 0;
@@ -441,7 +441,7 @@
if (pid < 0)
err(-1, "test_pdfork: pdfork");
if (pid == 0)
- exit(0);
+ _exit(0);
pollfd.fd = fd;
pollfd.events = POLLHUP;
pollfd.revents = 0;
More information about the p4-projects
mailing list