diff options
author | rsc <rsc> | 2007-09-26 23:24:23 +0000 |
---|---|---|
committer | rsc <rsc> | 2007-09-26 23:24:23 +0000 |
commit | 56c1a151d2e3e0d10bf1b7c69e64fcdf35cc1f61 (patch) | |
tree | b57a64294fb1cf0387038404071c9112effffd5a | |
parent | d5596cd61dd588781cde4b647075e39f07608c0a (diff) | |
download | xv6-labs-56c1a151d2e3e0d10bf1b7c69e64fcdf35cc1f61.tar.gz xv6-labs-56c1a151d2e3e0d10bf1b7c69e64fcdf35cc1f61.tar.bz2 xv6-labs-56c1a151d2e3e0d10bf1b7c69e64fcdf35cc1f61.zip |
debugging prints
-rw-r--r-- | usertests.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usertests.c b/usertests.c index 17c7044..2b35b8f 100644 --- 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(); |