commit - 39cff6e750c0ae587cbcb9ae771ed43fd6bbf362
commit + f002cc17a63794af58bfde55a95b7c7fd6551d9a
blob - bd9698c8d49d0cc1e812945f12c18b8b3eb286f2
blob + c11bf9bb0ad6775d729660572efe1ffb897a22ec
--- src/cmd/rc/plan9ish.c
+++ src/cmd/rc/plan9ish.c
envp=environp;
start(rdfns, 1, runq->local);
}
+extern int mapfd(int);
int Waitfor(int pid, int unused0){
thread *p;
Waitmsg *w;
while((w = wait()) != nil){
if(w->pid==pid){
+ if(strncmp(w->msg, "signal: ", 8) == 0)
+ fprint(mapfd(2), "%d: %s\n", w->pid, w->msg);
setstatus(w->msg);
free(w);
return 0;
}
+ if(strncmp(w->msg, "signal: ", 8) == 0)
+ fprint(2, "%d: %s\n", w->pid, w->msg);
for(p=runq->ret;p;p=p->ret)
if(p->pid==w->pid){
p->pid=-1;