1. Home
  2. Computing & Technology
  3. Linux
Linux / Unix Command: pause
Command Library

NAME

pause - wait for signal  

SYNOPSIS

#include <unistd.h>

int pause(void);  

DESCRIPTION

The pause library function causes the invoking process (or thread) to sleep until a signal is received that either terminates it or causes it to call a signal-catching function.  

RETURN VALUE

The pause function only returns when a signal was caught and the signal-catching function returned. In this case pause returns -1, and errno is set to EINTR.  

ERRORS

EINTR
a signal was caught and the signal-catching function returned.
 

CONFORMING TO

SVr4, SVID, POSIX, X/OPEN, BSD 4.3  

SEE ALSO

kill(2), select(2), signal(2)


Important: Use the man command (% man) to see how a command is used on your particular computer.

>> Linux/Unix Command Library

>> Shell Command Library

Explore Linux
About.com Special Features

The Best Web Trends of the Decade

A look back at the best innovations, ideas and technologies over the last 10 years, More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Linux

©2009 About.com, a part of The New York Times Company.

All rights reserved.