Print this page
12743 man page spelling mistakes
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/man/man3proc/Pclearsig.3proc
+++ new/usr/src/man/man3proc/Pclearsig.3proc
1 1 .\"
2 2 .\" This file and its contents are supplied under the terms of the
3 3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
4 4 .\" You may only use this file in accordance with the terms of version
5 5 .\" 1.0 of the CDDL.
6 6 .\"
7 7 .\" A full copy of the text of the CDDL should have accompanied this
8 8 .\" source. A copy of the CDDL is also available via the Internet at
9 9 .\" http://www.illumos.org/license/CDDL.
10 10 .\"
11 11 .\"
12 12 .\" Copyright 2015 Joyent, Inc.
13 13 .\"
14 -.Dd May 11, 2016
14 +.Dd May 16, 2020
15 15 .Dt PCLEARSIG 3PROC
16 16 .Os
17 17 .Sh NAME
18 18 .Nm Pclearsig ,
19 19 .Nm Lclearsig
20 20 .Nd clear process signals
21 21 .Sh LIBRARY
22 22 .Lb libproc
23 23 .Sh SYNOPSIS
24 24 .In libproc.h
25 25 .Ft int
26 26 .Fo Pclearsig
27 27 .Fa "struct ps_prochandle *P"
28 28 .Fc
29 29 .Ft int
30 30 .Fo Lclearsig
31 31 .Fa "struct ps_lwphandle *L"
32 32 .Fc
33 33 .Sh DESCRIPTION
34 34 During normal operation a process may receive a signal.
35 35 Signals may indicate an error, for example referencing unmapped memory, an alarm
36 36 firing, requests for information, and users requesting an interruption.
37 37 For more information on the generation and usage of signals, see
38 38 .Xr signal.h 3HEAD .
39 39 .Pp
40 40 The
41 41 .Fn Pclearsig
42 42 function instructs the system to clear any signal pending delivery to
↓ open down ↓ |
18 lines elided |
↑ open up ↑ |
43 43 a thread in the process represented by the process handle
44 44 .Fa P .
45 45 The pending signal will never be delivered to process represented by
46 46 .Fa P .
47 47 .Pp
48 48 The
49 49 .Fn Lclearsig
50 50 function is identical to the
51 51 .Fn Pclearsig
52 52 function, except rather than operating on the process and its
53 -representive thread, it instead operates on the thread handle
53 +representative thread, it instead operates on the thread handle
54 54 .Fa L .
55 55 .Pp
56 56 The
57 57 .Fn Pclearsig
58 58 function only has meaning for active processes.
59 59 It will fail on process handles corresponding to core files, zombie processes
60 60 and ELF objects.
61 61 .Sh RETURN VALUES
62 62 Upon successful completion, the
63 63 .Fn Pclearsig
64 64 function clears pending faults and
65 65 returns
66 66 .Sy 0 .
67 67 Otherwise,
68 68 .Sy -1
69 69 is returned,
70 70 .Sy errno
71 71 is set to indicate the error,
72 72 and no faults are cleared.
73 73 .Sh ERRORS
74 74 For a full list of possible errors see the
75 75 .Sy DIAGNOSTICS
76 76 section in
77 77 .Xr proc 4 .
78 78 .Sh INTERFACE STABILITY
79 79 .Sy Uncommitted
80 80 .Sh MT-LEVEL
81 81 See
82 82 .Sy LOCKING
83 83 in
84 84 .Xr libproc 3LIB .
85 85 .Sh SEE ALSO
86 86 .Xr signal.h 3HEAD ,
87 87 .Xr libproc 3LIB ,
88 88 .Xr proc 4
↓ open down ↓ |
25 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX