2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2015 Joyent, Inc.
19 .Nd remove a watchpoint in a process
26 .Fa "struct ps_prochandle *P"
27 .Fa "const prwatch_t *wp"
32 function removes the watchpoint specified by
34 from the process represented by the handle
36 The watchpoint should have been installed with either
38 or the underlying /proc file system
44 function only works on running processes, such as those created through
48 Attempting to remove a watchpoint from process handles to core files,
49 zombie processes, or ELF objects will fail.
51 Upon successful completion, the
53 function removes the watchpoint and returns
59 is set to indicate the error.
61 For a full list of possible errors see the
68 function will fail with:
73 refers to a grabbed core file, a zombie process, or an ELF object.
75 .Sh INTERFACE STABILITY
86 .Xr Pgrab_core 3PROC ,
87 .Xr Pgrab_file 3PROC ,