diff options
| author | Alexander Langer <alex@FreeBSD.org> | 1997-11-25 01:29:16 +0000 |
|---|---|---|
| committer | Alexander Langer <alex@FreeBSD.org> | 1997-11-25 01:29:16 +0000 |
| commit | 09bb0da60cdda81d524e1252636e5ae5d01e6b56 (patch) | |
| tree | 7df2107cb14b747d86e7667a8e44591c95fe05ea /lib/libpthread/thread/thr_detach.c | |
| parent | 3234f7c1cc2d1adb7150b06de37c92a76bafc5fa (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_detach.c')
| -rw-r--r-- | lib/libpthread/thread/thr_detach.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_detach.c b/lib/libpthread/thread/thr_detach.c index 08cace4c0af8..c8f312c925c2 100644 --- a/lib/libpthread/thread/thr_detach.c +++ b/lib/libpthread/thread/thr_detach.c @@ -49,8 +49,7 @@ pthread_detach(pthread_t * p_pthread) /* Check for invalid calling parameters: */ if (p_pthread == NULL || (pthread = *p_pthread) == NULL) { /* Return an invalid argument error: */ - errno = EINVAL; - rval = -1; + rval = EINVAL; } /* Check if the thread has not been detached: */ else if ((pthread->attr.flags & PTHREAD_DETACHED) == 0) { @@ -70,8 +69,7 @@ pthread_detach(pthread_t * p_pthread) *p_pthread = NULL; } else { /* Return an error: */ - errno = ESRCH; - rval = -1; + rval = ESRCH; } /* Unblock signals: */ |
