Intel® Fortran Compiler 17.0 Developer Guide and Reference

PXFSIGACTION (L*X, M*X)

POSIX Subroutine: Changes the action associated with a specific signal. It can also be used to examine the action of a signal.

Module

USE IFPOSIX

CALL PXFSIGACTION (isig,jsigact,josigact,ierror)

isig

(Input) INTEGER(4). The signal number whose action should be changed.

jsigact

(Input) INTEGER(4). A handle of structure sigaction. Specifies the new action for signal isig.

josigact

(Output) INTEGER(4). A handle of structure sigaction.Stores the previous action for signal isig.

ierror

(Output) INTEGER(4). The error status.

If successful, ierror is set to zero; otherwise, an error code.

The signal specified in isig can be any valid signal except SIGKILL and SIGSTOP.

If jsigact is nonzero, the new action for signal isig is installed from the structure associated with handle jsigact. If josigact is nonzero, the previous action of the specified signal is saved in the structure associated with handle josigact where it can be examined.

Note

To get a handle for an instance of the sigaction structure, use PXFSTRUCTCREATE with the string 'sigaction' for the structure name.

See Also