aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/exit.c')
-rw-r--r--src/libthread/exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libthread/exit.c b/src/libthread/exit.c
index 1f9c26ae..cf34c60c 100644
--- a/src/libthread/exit.c
+++ b/src/libthread/exit.c
@@ -55,8 +55,9 @@ threadexitsall(char *exitstr)
_threaddebug(DBGSCHED, "threadexitsall kill %d", pid[i]);
if(pid[i]==0 || pid[i]==-1)
fprint(2, "bad pid in threadexitsall: %d\n", pid[i]);
- else if(pid[i] != mypid)
+ else if(pid[i] != mypid){
kill(pid[i], SIGTERM);
+ }
}
/* leave */