From 7966faa931bfa9cf4ca53dd2d5b6e1eb0f174411 Mon Sep 17 00:00:00 2001 From: rsc Date: Thu, 23 Sep 2004 03:01:36 +0000 Subject: Continue fighting pthreads. Clean up thread library a bit too. --- src/libthread/note.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libthread/note.c') diff --git a/src/libthread/note.c b/src/libthread/note.c index 241c16ff..60742aad 100644 --- a/src/libthread/note.c +++ b/src/libthread/note.c @@ -65,6 +65,8 @@ delayednotes(Proc *p, void *v) } if(i==NFN){ _threaddebug(DBGNOTE, "Unhandled note %s, proc %p\n", n->s, p); + if(strcmp(n->s, "sys: child") == 0) + noted(NCONT); fprint(2, "unhandled note %s, pid %d\n", n->s, p->pid); if(v != nil) noted(NDFLT); @@ -85,7 +87,9 @@ _threadnote(void *v, char *s) Note *n; _threaddebug(DBGNOTE, "Got note %s", s); - if(strncmp(s, "sys:", 4) == 0 && strcmp(s, "sys: write on closed pipe") != 0) + if(strncmp(s, "sys:", 4) == 0 + && strcmp(s, "sys: write on closed pipe") != 0 + && strcmp(s, "sys: child") != 0) noted(NDFLT); // if(_threadexitsallstatus){ -- cgit v1.2.3