MIAMEX 54: Get signal received status

xcall MIAMEX, MX_GETSIG, sigmask

(UNIX only) MX_GETSIG returns a bitmap indicating which signals have been received since the MX_CLRSIG call was last used to reset the signal received bitmap.

Parameters

sigmask  (F,6)

Returns with zero or one of the following bits set to indicate which signal (if any) was received:

Symbol

Value

Name*

Meaning

SR_INT

&h0001

SIGINT

Ctrl+C

SR_CHLD

&h0002

SIGCHLD

Child process terminated

SR_USR1

&h0004

SIGUSR1

Receipt of ITC or IJC message

SR_USR2

&h0008

SIGUSR2

PolyShell swap operation

SR_HUP

&h0010

SIGHUP

Hangup (telnet or terminal session disconnected)

SR_KILL

&h0020

SIGKILL

Kill (cannot be trapped so will never be seen)

SR_TSTP

&h0040

SIGTSTP

Background task waiting for terminal context to perform input operation

SR_ALARM

&h0080

SIGALRM

Alarm signal (used by sleep timers and WAKNO.SBR)

SR_TERM

&h0100

SIGTERM

Default kill signal

SR_PIPE

&h0200

SIGPIPE

Broken pipe or socket connect (other end has terminated)

SR_SYSCALL

&h0400

n/a

Pseudo signal flag used by A-Shell to indicate that it is waiting on a system() call such as HOSTEX

Definition file: ashell.def

Hex-Decimal Values

 

* The terms in the "Name" column are the standard POSIX signal names for the subset of signals recognized by A-Shell. Note the standard signal names are associated with integer values that may vary between UNIX flavors; the bit values used by A-Shell are independent of the underlying operating system signal values, and uniform across all platforms.