user507401
user507401

Reputation: 2899

regarding sigaction function

i went through the sigaction function in stevens but was unable to understand .please anyone explain it in brief the usage and application .thanks.

Upvotes: 0

Views: 254

Answers (1)

Milan
Milan

Reputation: 15849

I described briefly what a signal is here.

sigaction function is used in order to change the action of a process when a signal is received. With sigaction you register a handler function that is called when a signal arrives. Once the signal is received, the handler function is called and you are able to define how and what the program shall do next.

sigaction function example here.

Upvotes: 1

Related Questions