From 1544f90960275dc9211bde30329c3258e0e1bf38 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 25 Dec 2004 21:56:33 +0000 Subject: New thread library --- src/libthread/exit-getpid.ch | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 src/libthread/exit-getpid.ch (limited to 'src/libthread/exit-getpid.ch') diff --git a/src/libthread/exit-getpid.ch b/src/libthread/exit-getpid.ch deleted file mode 100644 index e2580ac7..00000000 --- a/src/libthread/exit-getpid.ch +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Implement threadexitsall by sending a signal to every proc. - * - * To be included from another C file (e.g., Linux-clone.c). - */ - -void -_threadexitallproc(char *exitstr) -{ - Proc *p; - int mypid; - - mypid = getpid(); - lock(&_threadpq.lock); - for(p=_threadpq.head; p; p=p->next) - if(p->pid > 1 && p->pid != mypid) - kill(p->pid, SIGUSR2); - exits(exitstr); -} - -void -_threadexitproc(char *exitstr) -{ - _exits(exitstr); -} -- cgit v1.2.3