diff options
| author | John Birrell <jb@FreeBSD.org> | 1998-04-03 09:31:15 +0000 |
|---|---|---|
| committer | John Birrell <jb@FreeBSD.org> | 1998-04-03 09:31:15 +0000 |
| commit | ed92686917250ff0cd818edae39dc79dc0795409 (patch) | |
| tree | c8efaea56aab15f31cb9144f71c44364e138e8c0 /lib/libpthread/thread/thr_detach.c | |
| parent | 4d2c1d2306f9bf8197b7321352fa2a82ae10e1a6 (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_detach.c')
| -rw-r--r-- | lib/libpthread/thread/thr_detach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_detach.c b/lib/libpthread/thread/thr_detach.c index a9f24699e3c6..57c073ab3ab9 100644 --- a/lib/libpthread/thread/thr_detach.c +++ b/lib/libpthread/thread/thr_detach.c @@ -46,7 +46,7 @@ pthread_detach(pthread_t pthread) _thread_kern_sig_block(&status); /* Check for invalid calling parameters: */ - if (pthread == NULL) { + if (pthread == NULL || pthread->magic != PTHREAD_MAGIC) { /* Return an invalid argument error: */ rval = EINVAL; } |
