diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-09-12 03:53:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-09-12 03:53:07 +0000 |
commit | 57642a78929e35d58c25f416f523670effdc0f70 (patch) | |
tree | af543e6c01f354fe5894b66dbf382962a9d1e791 /linuxthreads/pthread.c | |
parent | 455e8060b03bc12a2b3a25c9be92b5e420d806fd (diff) | |
download | glibc-57642a78929e35d58c25f416f523670effdc0f70.zip glibc-57642a78929e35d58c25f416f523670effdc0f70.tar.gz glibc-57642a78929e35d58c25f416f523670effdc0f70.tar.bz2 |
Update.
2001-09-11 Ulrich Drepper <drepper@redhat.com>
* nscd/nscd_gethst_r.c: Don't expect IPv6 addresses for IPv4 lookup.
Patch by Stephan Kulow.
Diffstat (limited to 'linuxthreads/pthread.c')
-rw-r--r-- | linuxthreads/pthread.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/linuxthreads/pthread.c b/linuxthreads/pthread.c index 721da9b..f87413b 100644 --- a/linuxthreads/pthread.c +++ b/linuxthreads/pthread.c @@ -631,7 +631,8 @@ int __pthread_initialize_manager(void) } /* Synchronize debugging of the thread manager */ request.req_kind = REQ_DEBUG; - __libc_write(__pthread_manager_request, (char *) &request, sizeof(request)); + TEMP_FAILURE_RETRY(__libc_write(__pthread_manager_request, + (char *) &request, sizeof(request))); return 0; } @@ -653,7 +654,8 @@ int __pthread_create_2_1(pthread_t *thread, const pthread_attr_t *attr, request.req_args.create.arg = arg; sigprocmask(SIG_SETMASK, (const sigset_t *) NULL, &request.req_args.create.mask); - __libc_write(__pthread_manager_request, (char *) &request, sizeof(request)); + TEMP_FAILURE_RETRY(__libc_write(__pthread_manager_request, + (char *) &request, sizeof(request))); suspend(self); retval = THREAD_GETMEM(self, p_retcode); if (__builtin_expect (retval, 0) == 0) @@ -785,8 +787,8 @@ static void pthread_onexit_process(int retcode, void *arg) request.req_thread = self; request.req_kind = REQ_PROCESS_EXIT; request.req_args.exit.code = retcode; - __libc_write(__pthread_manager_request, - (char *) &request, sizeof(request)); + TEMP_FAILURE_RETRY(__libc_write(__pthread_manager_request, + (char *) &request, sizeof(request))); suspend(self); /* Main thread should accumulate times for thread manager and its children, so that timings for main thread account for all threads. */ @@ -1151,7 +1153,7 @@ void __pthread_message(char * fmt, ...) va_start(args, fmt); vsnprintf(buffer + 8, sizeof(buffer) - 8, fmt, args); va_end(args); - __libc_write(2, buffer, strlen(buffer)); + TEMP_FAILURE_RETRY(__libc_write(2, buffer, strlen(buffer))); } #endif |