commit 56c1a151d2e3e0d10bf1b7c69e64fcdf35cc1f61
parent d5596cd61dd588781cde4b647075e39f07608c0a
Author: rsc <rsc>
Date: Wed, 26 Sep 2007 23:24:23 +0000
debugging prints
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/usertests.c b/usertests.c
@@ -256,6 +256,7 @@ preempt(void)
int pid1, pid2, pid3;
int pfds[2];
+ printf(1, "preempt: ");
pid1 = fork();
if(pid1 == 0)
for(;;)
@@ -283,9 +284,11 @@ preempt(void)
return;
}
close(pfds[0]);
+ printf(1, "kill... ");
kill(pid1);
kill(pid2);
kill(pid3);
+ printf(1, "wait... ");
wait();
wait();
wait();