Contains signals related os apis.
Function Documentation
Send signal to a process. This function is compatible with POSIX kill().
- Parameters:
-
[in] | pid | The process to send signal to. |
[in] | signal | The signal to send. |
- Returns:
- Operation status code.
- Availability:
- O/S: Linux & macOS*
CPU: All
Send signal to a particular thread inside a process.
- Parameters:
-
[in] | pid | The process ID where the thread is running.if it's INVALID_NATIVE_PID then we ignore the pid. |
[in] | tid | The thread ID to send the signal to. |
[in] | signal | The signal to send. |
- Returns:
- Operation status code.
- Availability:
- O/S: Linux & macOS*
CPU: All
Change the action taken by a process on receipt of a specific signal. This function is compatible with POSIX sigaction().
- Parameters:
-
[in] | signum | The signal to alter its behavior. |
[in] | act | The action to be taken upon signal reception. |
[in] | oldact | The previous action that was taken upon signal reception. |
- Returns:
- Operation status code.
- Availability:
- O/S: Linux & macOS*
CPU: All
Returns the set of signals that are pending for delivery to the calling thread (i.e., the signals which have been raised while blocked). The mask of pending signals is returned in set.
- Parameters:
-
[out] | set | Where to store the signal set. |
- Returns:
- Operation status code.
- Availability:
- O/S: Linux & macOS*
CPU: All
OS_RETURN_CODE OS_SigProcMask |
( |
INT |
how, |
|
|
const SIGSET_T * |
set, |
|
|
SIGSET_T * |
oldset |
|
) |
| |
Change the signal mask, the set of currently blocked signals for the current thread. This function is compatible with POSIX sigprocmask().
- Parameters:
-
[in] | how | Specifies how to alter the blocked signals mask: SIG_BLOCK: The set of blocked signals is the union of the current set and the set argument. SIG_UNBLOCK: The signals in set are removed from the current set of blocked signals. It is legal to attempt to unblock a signal which is not blocked. SIG_SETMASK: The set of blocked signals is set to the argument set. |
[in] | set | The signal set to alter. |
[in] | oldset | The previous blocked signals set. |
- Returns:
- Operation status code.
- Availability:
- O/S: Linux & macOS*
CPU: All
Temporarily replaces the signal mask of the calling process with the mask given by mask and then suspends the process until delivery of a signal whose action is to invoke a signal handler or to terminate a process.
- Parameters:
-
[in] | mask | The mask to use for the signals |
- Returns:
- Operation status code.
- Availability:
- O/S: Linux & macOS*
CPU: All