Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sigpause(2) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sigblock(2)

sigvector(2)

SIGPAUSE(2)

NAME

sigpause − atomically release blocked signals and wait for interrupt

SYNOPSIS

long sigpause(sigmask)
long sigmask;

HP-UX COMPATIBILITY

Level: HP-UX/STANDARD

Origin: UCB

DESCRIPTION

Sigpause assigns sigmask to the set of masked signals and then waits for a signal to arrive; on return the set of masked signals is restored to the sigmask value which existed before the sigpause call.  Sigmask is usually 0L to indicate that no signals are now to be blocked. 

Normally, at the beginning of a critical code section, a specified signal(s) is blocked using sigblock(2). When the process has completed the critical section and needs to wait for the previously blocked signal(s), it pauses by calling sigpause with the mask that was returned by the sigblock call. 

RETURN VALUE

Sigpause always terminates by being interrupted, returning -1 and setting errno to EINTR. 

SEE ALSO

sigblock(2), sigvector(2)

Hewlett-Packard  —  last mod. May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026