diff options
| author | rsc <devnull@localhost> | 2003-11-23 18:18:00 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2003-11-23 18:18:00 +0000 |
| commit | cd7ddc9b5f34da33a2eb0ea761681c2330284e69 (patch) | |
| tree | a3f222bf728a1146ee745ae7d1cab1873ac2d019 /src/libthread/texec.c | |
| parent | b7e6f4150f0974a3f3b145a23911b7c8a4b9399b (diff) | |
| download | plan9port-cd7ddc9b5f34da33a2eb0ea761681c2330284e69.tar.gz plan9port-cd7ddc9b5f34da33a2eb0ea761681c2330284e69.zip | |
make -> mk
remove clumsy stack hack.
fix exec.
fix nthreads maintenance.
fix threadexitsall not to kill self.
add sun support.
Diffstat (limited to 'src/libthread/texec.c')
| -rw-r--r-- | src/libthread/texec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libthread/texec.c b/src/libthread/texec.c index 9ba86827..87c3f77b 100644 --- a/src/libthread/texec.c +++ b/src/libthread/texec.c @@ -7,6 +7,7 @@ doexec(void *v) { char **argv = v; +print("doexec\n"); procexec(nil, argv[0], argv); sendp(threadwaitchan(), nil); } @@ -27,8 +28,8 @@ threadmain(int argc, char **argv) proccreate(doexec, argv, 8192); w = recvp(c); if(w == nil) - print("exec failed\n"); + print("exec failed: %r\n"); else - print("%d %lu %lu %lu %s\n", w->pid, w->time[0], w->time[1], w->time[2], w->msg); + print("%d %lud %lud %lud %s\n", w->pid, w->time[0], w->time[1], w->time[2], w->msg); threadexits(nil); } |
