Unix and Linux Discussions Tagged with signal |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
4,545 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
3,816 |
Programming |
|
|
|
6 |
3,298 |
AIX |
|
|
|
2 |
2,675 |
Shell Programming and Scripting |
|
|
|
5 |
14,358 |
Shell Programming and Scripting |
|
|
|
3 |
2,254 |
Shell Programming and Scripting |
|
|
|
11 |
4,868 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
26,587 |
Emergency UNIX and Linux Support |
|
|
|
8 |
12,573 |
Programming |
|
|
|
6 |
11,249 |
Programming |
|
|
|
3 |
8,736 |
Programming |
|
|
|
4 |
7,624 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
2,478 |
Shell Programming and Scripting |
|
|
|
1 |
5,244 |
Programming |
|
|
|
3 |
5,316 |
Programming |
|
|
|
1 |
3,638 |
Linux |
|
|
|
0 |
1,768 |
Software Releases - RSS News |
|
|
|
2 |
3,671 |
Programming |
|
|
|
0 |
2,834 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
18,373 |
Shell Programming and Scripting |
|
|
|
4 |
9,141 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
4,724 |
Shell Programming and Scripting |
|
|
|
2 |
8,773 |
Programming |
|
|
|
7 |
10,575 |
Programming |
|
|
|
1 |
4,780 |
Linux |
|
|
|
1 |
3,231 |
Programming |
|
|
|
8 |
29,637 |
Programming |
|
|
|
0 |
1,323 |
Software Releases - RSS News |
|
|
|
2 |
6,573 |
UNIX for Dummies Questions & Answers |
|
|
|
7 |
9,664 |
Programming |
|
|
|
0 |
14,325 |
HP-UX |
|
|
|
2 |
13,737 |
Programming |
|
|
|
4 |
12,562 |
Shell Programming and Scripting |
|
|
|
8 |
15,481 |
Programming |
|
|
|
1 |
12,327 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,435 |
Software Releases - RSS News |
|
|
|
2 |
3,624 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
5,797 |
IP Networking |
|
|
|
1 |
7,021 |
Programming |
|
|
|
2 |
20,873 |
Shell Programming and Scripting |
pause(2) System Calls Manual pause(2)
NAME
pause - suspend process until signal
SYNOPSIS
DESCRIPTION
suspends the calling process until it receives a signal. The signal must be one that is not currently set to be ignored or blocked
(masked) by the calling process.
If the signal causes termination of the calling process, does not return.
If the signal is by the calling process and control is returned from the signal-catching function (see signal(5)), the calling process
resumes execution from the point of suspension; with a return value of -1 from and set to
APPLICATION USAGE
Threads Considerations
Signal dispositions (such as catch/default/ignore) are shared by all threads in the process and blocked signal masks are maintained by each
thread. Therefore, the signals being waited for should not be ignored by the process or blocked by the calling thread.
will suspend only the calling thread until it receives a signal.
If other threads in the process do not block the signal, the signal may be delivered to another thread in the process and the thread in may
continue waiting. For this reason, the use of is recommended instead of for multi-threaded applications.
For more information regarding signals and threads, refer to signal(5).
SEE ALSO
alarm(2), kill(2), sigwait(2), wait(2), signal(5).
STANDARDS CONFORMANCE
pause(2)