Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
System Callspause(2)


NAME

 pause - suspend process until signal

SYNOPSIS

 
#include <unistd.h>
int pause(void);

DESCRIPTION

 

The pause() function suspends the calling process until it receives a signal. The signal must be one that is not currently set to be ignored by the calling process.

If the signal causes termination of the calling process, pause() does not return.

If the signal is caught by the calling process and control is returned from the signal-catching function (see signal(3C)), the calling process resumes execution from the point of suspension.

RETURN VALUES

 

Since pause() suspends thread execution indefinitely unless interrupted by a signal, there is no successful completion return value. If interrupted, it returns -1 and sets errno to indicate the error.

ERRORS

 

The pause() function will fail if:

EINTR
A signal is caught by the calling process and control is returned from the signal-catching function.

ATTRIBUTES

 

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPEATTRIBUTE VALUE
MT-LevelAsync-Signal-Safe

SEE ALSO

 

alarm(2), kill(2), wait(2), signal(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 28 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.