diff options
author | rsc <devnull@localhost> | 2004-12-25 21:56:33 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-12-25 21:56:33 +0000 |
commit | 1544f90960275dc9211bde30329c3258e0e1bf38 (patch) | |
tree | f55e7a73c03aaa24daa7cc2ad02822b921c477f9 /src/libthread/exit-getpid.ch | |
parent | 7788fd54094693384ef5c92c475656dba8819feb (diff) | |
download | plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.tar.gz plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.tar.bz2 plan9port-1544f90960275dc9211bde30329c3258e0e1bf38.zip |
New thread library
Diffstat (limited to 'src/libthread/exit-getpid.ch')
-rw-r--r-- | src/libthread/exit-getpid.ch | 25 |
1 files changed, 0 insertions, 25 deletions
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); -} |