Linux Process Signal Set sigset_t

Source: Internet
Author: User
Sigset_t number set and Signal Set operation function: the signal set is defined as a data type:
Typedef struct {
Unsigned long sig [_ nsig_words];
} Sigset_t
The signal set is used to describe the signal set. All signals supported by Linux can appear in the signal set in whole or in part, mainly used in combination with functions related to signal blocking. The following are related functions defined for Signal Set Operations:
Int sigemptyset (sigset_t * Set );
Int sigfillset (sigset_t * Set );
Int sigaddset (sigset_t * Set, int SIGNUM)
Int sigdelset (sigset_t * Set, int SIGNUM );
Int sigismember (const sigset_t * Set, int SIGNUM );
Header file
# Include <signal. h>
Sigemptyset (sigset_t * Set) initializes the signal set specified by the set, and all signals in the signal set are cleared;
After sigfillset (sigset_t * Set) calls this function, the signal set points to will contain 64 types of signals supported by Linux;
Sigaddset (sigset_t * Set, int SIGNUM) adds the SIGNUM signal to the signal set pointed to by the Set;
Sigdelset (sigset_t * Set, int SIGNUM) deletes the SIGNUM signal in the signal set pointed to by the Set;
Sigismember (const sigset_t * Set, int SIGNUM) determines whether the signal SIGNUM is in the signal set pointed to by the set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.