send arguments to a sigaction handler
Hi-
Is it possible to send arguments to the sigaction handler? Here is my code: Code:
|
Signals are asynchronous events. All three arguments to the signal handler are set by the kernel. If you want the signal handler to be aware of certain conditions, use global variables. Declare them like "volatile sig_atomic_t foobar;" so any fetch/set operation on the variable is atomic (ie, it won't be interrupted in the middle of the operation if it takes +1 instructions).
|
All times are GMT -5. The time now is 01:31 AM. |