logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pause - wait for signal

Description

pause() causes the calling process (or thread) to sleep until a signal is delivered that either terminates the process or causes the invocation of a signal-catching function.

Errors

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

History

POSIX.1-2001, SVr4, 4.3BSD.

Library

Standard C library (libc, -lc)

Name

pause - wait for signal

Return Value

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

See Also

kill(2), select(2), signal(2), sigsuspend(2) Linux man-pages 6.9.1 2024-05-02 pause(2)

Standards

POSIX.1-2008.

Synopsis

#include<unistd.h>intpause(void);

See Also