diff options
| author | rsc <devnull@localhost> | 2005-01-18 18:13:16 +0000 |
|---|---|---|
| committer | rsc <devnull@localhost> | 2005-01-18 18:13:16 +0000 |
| commit | 3d867865ef5663f640f7c607fadfd3fb0c0ac625 (patch) | |
| tree | 5e7aec90cd21b3691befc6ec93f436e4ac259704 /src/libthread/pthread.c | |
| parent | daefa1a92f688399290f231c4c738ef99e7b8ab4 (diff) | |
better exit handling
Diffstat (limited to 'src/libthread/pthread.c')
| -rw-r--r-- | src/libthread/pthread.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libthread/pthread.c b/src/libthread/pthread.c index 31cc12e1..7404817d 100644 --- a/src/libthread/pthread.c +++ b/src/libthread/pthread.c @@ -1,5 +1,8 @@ #include "threadimpl.h" +#undef exits +#undef _exits + static pthread_mutex_t initmutex = PTHREAD_MUTEX_INITIALIZER; static void @@ -136,10 +139,8 @@ _pthreadinit(void) static struct utsname un; pthread_t id; - if(uname(&un) < 0){ + if(uname(&un) < 0) fprint(2, "warning: uname failed: %r\n"); - goto Okay; - } if(strcmp(un.sysname, "Linux") == 0){ /* * Want to distinguish between the old LinuxThreads pthreads |