View | Details | Raw Unified | Return to bug 3248
Collapse All | Expand All

(-)linuxthreads/sysdeps/pthread/gai_misc.h.OLD (-6 / +3 lines)
Lines 34-41 Link Here
34
{
34
{
35
  sigset_t ss;
35
  sigset_t ss;
36
  sigemptyset (&ss);
36
  sigemptyset (&ss);
37
  INTERNAL_SYSCALL_DECL (err);
37
  __sigprocmask(SIG_SETMASK, &ss, NULL);
38
  INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, NULL, _NSIG / 8);
39
}
38
}
40
39
41
extern inline int
40
extern inline int
Lines 56-69 Link Here
56
  sigset_t ss;
55
  sigset_t ss;
57
  sigset_t oss;
56
  sigset_t oss;
58
  sigfillset (&ss);
57
  sigfillset (&ss);
59
  INTERNAL_SYSCALL_DECL (err);
58
  __sigprocmask(SIG_SETMASK, &ss, &oss);
60
  INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &ss, &oss, _NSIG / 8);
61
59
62
  int ret = pthread_create (threadp, &attr, tf, arg);
60
  int ret = pthread_create (threadp, &attr, tf, arg);
63
61
64
  /* Restore the signal mask.  */
62
  /* Restore the signal mask.  */
65
  INTERNAL_SYSCALL (rt_sigprocmask, err, 4, SIG_SETMASK, &oss, NULL,
63
  __sigprocmask(SIG_SETMASK, &oss, NULL);
66
		    _NSIG / 8);
67
64
68
  (void) pthread_attr_destroy (&attr);
65
  (void) pthread_attr_destroy (&attr);
69
  return ret;
66
  return ret;

Return to bug 3248