make -> mk
remove clumsy stack hack. fix exec. fix nthreads maintenance. fix threadexitsall not to kill self. add sun support.
This commit is contained in:
parent
b7e6f4150f
commit
cd7ddc9b5f
10 changed files with 105 additions and 116 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue