diff options
Diffstat (limited to 'winsup/cygwin/pinfo.h')
-rw-r--r-- | winsup/cygwin/pinfo.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/winsup/cygwin/pinfo.h b/winsup/cygwin/pinfo.h index 3599015cc60..030c7e91b43 100644 --- a/winsup/cygwin/pinfo.h +++ b/winsup/cygwin/pinfo.h @@ -38,6 +38,8 @@ enum picom PICOM_FIFO = 2 }; +extern struct sigaction *global_sigs; + class _pinfo { public: @@ -112,11 +114,9 @@ public: inline struct sigaction& getsig (int sig) { - return thread2signal ? thread2signal->sigs[sig] : sigs[sig]; + return global_sigs[sig]; } - inline void copysigs (_pinfo *p) {memcpy (sigs, p->sigs, sizeof (sigs));} - inline sigset_t& getsigmask () { return thread2signal ? *thread2signal->sigmask : sig_mask; @@ -145,7 +145,6 @@ public: friend void __stdcall set_myself (pid_t, HANDLE); private: - struct sigaction sigs[NSIG]; sigset_t sig_mask; /* one set for everything to ignore. */ LONG _sigtodo[NSIG + __SIGOFFSET]; pthread *thread2signal; // NULL means thread any other means a pthread |