mirror of git://sourceware.org/git/glibc.git
nptl: Remove uses of assert_perror
__pthread_sigmask cannot actually fail with valid pointer arguments (it would need a really broken seccomp filter), and we do not check for errors elsewhere. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
cca9684f2d
commit
68e036f27f
|
@ -81,9 +81,7 @@ __gai_start_notify_thread (void)
|
||||||
{
|
{
|
||||||
sigset_t ss;
|
sigset_t ss;
|
||||||
sigemptyset (&ss);
|
sigemptyset (&ss);
|
||||||
int sigerr __attribute__ ((unused));
|
(void) __pthread_sigmask (SIG_SETMASK, &ss, NULL);
|
||||||
sigerr = __pthread_sigmask (SIG_SETMASK, &ss, NULL);
|
|
||||||
assert_perror (sigerr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
extern inline int
|
extern inline int
|
||||||
|
@ -106,15 +104,12 @@ __gai_create_helper_thread (pthread_t *threadp, void *(*tf) (void *),
|
||||||
sigset_t ss;
|
sigset_t ss;
|
||||||
sigset_t oss;
|
sigset_t oss;
|
||||||
sigfillset (&ss);
|
sigfillset (&ss);
|
||||||
int sigerr __attribute__ ((unused));
|
(void) __pthread_sigmask (SIG_SETMASK, &ss, &oss);
|
||||||
sigerr = __pthread_sigmask (SIG_SETMASK, &ss, &oss);
|
|
||||||
assert_perror (sigerr);
|
|
||||||
|
|
||||||
int ret = __pthread_create (threadp, &attr, tf, arg);
|
int ret = __pthread_create (threadp, &attr, tf, arg);
|
||||||
|
|
||||||
/* Restore the signal mask. */
|
/* Restore the signal mask. */
|
||||||
sigerr = __pthread_sigmask (SIG_SETMASK, &oss, NULL);
|
(void) __pthread_sigmask (SIG_SETMASK, &oss, NULL);
|
||||||
assert_perror (sigerr);
|
|
||||||
|
|
||||||
(void) __pthread_attr_destroy (&attr);
|
(void) __pthread_attr_destroy (&attr);
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue