Unix to Windows Porting Dictionary for HPC

RSS

Links

Function List

sigismember


Unix

header file: signal.h

int sigismember(const sigset_t *set, int signo);

Windows

Header file: none

Purpose

The sigismember call tests the signal mask set pointed to by set for the existence of the specified signal (signo).

Discussion

The POSIX implementation of signals includes the ability to mask individual signals. A signal mask is maintained by the operating system for each process in the system. The sigismember routine allows the user to inspect the signal mask to see whether a particular signal is included or not.

The Windows implementation of signals does not include a mask capability at the process level. To get around this limitation the user can implement masking in the handler itself after setting the handler up to accept all signals. Once the handler is invoked, it can inspect the number of the signal that has invoked it and decide whether to ignore it, process it or send it off to the default handler for that signal.

In the running example the sigismember routine would inspect the sigmask array for the information desired.

blog comments powered by Disqus
Valid HTML 4.01 Transitional Valid CSS!