Print this page
8158 Want named threads API
9857 proc manpages should have LIBRARY section
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3proc/Psignal.3proc.man.txt
+++ new/usr/src/man/man3proc/Psignal.3proc.man.txt
1 1 PSIGNAL(3PROC) Process Control Library Functions PSIGNAL(3PROC)
2 2
3 3 NAME
4 4 Psignal - set signal tracing action
5 5
6 -SYNOPSIS
6 +LIBRARY
7 7 Process Control Library (libproc, -lproc)
8 +
9 +SYNOPSIS
8 10 #include <libproc.h>
9 11
10 12 int
11 13 Psignal(struct ps_prochandle *P, int which, int stop);
12 14
13 15 DESCRIPTION
14 16 The Psignal() function sets the signal tracing flag for the process
15 17 handle P. If stop is non-zero it causes the process handle to stop
16 18 threads that encounter the signal which. If stop is zero, then it
17 19 disables tracing for the signal which.
18 20
19 21 The signal constants, representing valid values for which, can be found
20 22 in signal.h(3HEAD.) The signal SIGKILL may not be stopped.
21 23
22 24 Note, only active processes may have their signal tracing flags updated.
23 25 Process handles that refer to core files, zombie processes, and files do
24 26 not have signal tracing flags. Calling this function on them is an
25 27 error.
26 28
27 29 RETURN VALUES
28 30 Upon successful completion, the Psignal() function returns the previous
29 31 disposition of the signal which. It returns 1 if it was set and 0 if
30 32 not. Otherwise, -1 is returned and errno is set to indicate the error.
31 33
32 34 ERRORS
33 35 The Psignal() function will fail if:
34 36
35 37 EINVAL which is SIGKILL and stop is non-zero .
36 38
37 39 which is not a valid signal.
38 40
39 41 ENOENT P does not correspond to an active process.
40 42
41 43 INTERFACE STABILITY
42 44 Uncommitted
43 45
44 46 MT-LEVEL
45 47 See LOCKING in libproc(3LIB).
46 48
47 49 SEE ALSO
48 50 signal.h(3HEAD), libproc(3LIB), Psetsignal(3PROC), proc(4)
49 51
50 52 illumos May 11, 2016 illumos
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX