diff options
Diffstat (limited to 'signal.c')
-rw-r--r-- | signal.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -35,6 +35,11 @@ pthread_sigmask(int how, sigset_t const *set, sigset_t *oset) { pthread_t thread = pthread_self(); + if (thread == NULL) + { + return ENOENT; + } + /* Validate the `how' argument.*/ if (set != NULL) { |