diff options
author | rsc <devnull@localhost> | 2004-10-22 17:15:30 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-10-22 17:15:30 +0000 |
commit | ba15d71b0cf27ba89d14b547d7ded643e5de6a01 (patch) | |
tree | c7147b8d213a434032b5d7a917f295fa985f10d6 /src/libthread/pthread.c | |
parent | 493f3d0fbf548303a8f468ffffca8476607ee2cd (diff) | |
download | plan9port-ba15d71b0cf27ba89d14b547d7ded643e5de6a01.tar.gz plan9port-ba15d71b0cf27ba89d14b547d7ded643e5de6a01.tar.bz2 plan9port-ba15d71b0cf27ba89d14b547d7ded643e5de6a01.zip |
debugging, more pthreads crap
Diffstat (limited to 'src/libthread/pthread.c')
-rw-r--r-- | src/libthread/pthread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index b2c1c026..a914f433 100644 --- a/src/libthread/pthread.c +++ b/src/libthread/pthread.c @@ -60,6 +60,7 @@ _threadinitproc(Proc *p) void _threadexitproc(char *exitstr) { + _threaddebug(DBGSCHED, "_pthreadexit"); pthread_exit(nil); } @@ -69,7 +70,8 @@ _threadexitproc(char *exitstr) void _threadexitallproc(char *exitstr) { - exits(0); + _threaddebug(DBGSCHED, "_threadexitallproc"); + exits(exitstr); } /* @@ -111,6 +113,7 @@ _threadwaitproc(void *v) else free(w); } +fprint(2, "_threadwaitproc exits\n"); } /* |