Unix/Linux Go Back    

OpenSolaris 2009.06 - man page for pause (opensolaris section 2)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

pause(2)				   System Calls 				 pause(2)

       pause - suspend process until signal

       #include <unistd.h>

       int pause(void);

       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.

       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.

       The pause() function will fail if:

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

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

       |      ATTRIBUTE TYPE	     |	    ATTRIBUTE VALUE	   |
       |Interface Stability	     |Standard			   |
       |MT-Level		     |Async-Signal-Safe 	   |

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

SunOS 5.11				   28 Dec 1996					 pause(2)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 07:18 AM.