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
25 .Fa "struct ps_prochandle *P"
26 .Fa "const prwatch_t *wp"
31 function removes the watchpoint specified by
33 from the process represented by the handle
35 The watchpoint should have been installed with either
37 or the underlying /proc file system
43 function only works on running processes, such as those created through
47 Attempting to remove a watchpoint from process handles to core files,
48 zombie processes, or ELF objects will fail.
50 Upon successful completion, the
52 function removes the watchpoint and returns
58 is set to indicate the error.
60 For a full list of possible errors see the
67 function will fail with:
72 refers to a grabbed core file, a zombie process, or an ELF object.
74 .Sh INTERFACE STABILITY
85 .Xr Pgrab_core 3PROC ,
86 .Xr Pgrab_file 3PROC ,