.\" Copyright (c) 1983, 1991 The Regents of the University of California. .\" All rights reserved. .\" .\" %sccs.include.redist.man% .\" .\" @(#)sigpause.2 6.6 (Berkeley) 03/10/91 .\" .Dd .Dt SIGPAUSE 2 .Os BSD 4 .Sh NAME .Nm sigpause .Nd atomically release blocked signals and wait for interrupt .Sh SYNOPSIS .Fd #include .Ft int .Fn sigpause "int sigmask" .Sh DESCRIPTION .Sy This interface is made obsolete by .Xr sigsuspend 2 . .Pp .Fn Sigpause assigns .Fa sigmask to the set of masked signals and then waits for a signal to arrive; on return the set of masked signals is restored. .Fa Sigmask is usually 0 to indicate that no signals are to be blocked. .Fn Sigpause always terminates by being interrupted, returning -1 with .Va errno set to .Dv EINTR .Sh SEE ALSO .Xr sigsuspend 2 , .Xr kill 2 , .Xr sigaction 2 , .Xr sigprocmask 2 , .Xr sigblock 2 , .Xr sigvec 2 .Sh HISTORY The .Nm function call appeared in .Bx 4.2 and has been deprecated.