1 PGRAB(3PROC) Process Control Library Functions PGRAB(3PROC)
2
3 NAME
4 Pgrab - grab and control a process
5
6 SYNOPSIS
7 Process Control Library (libproc, -lproc)
8 #include <libproc.h>
9
10 struct ps_prochandle *
11 Pgrab(pid_t pid, int flags, int *perr);
12
13 DESCRIPTION
14 The Pgrab() function attempts to grab the process identified by pid and
15 returns a handle to it that allows the process to be controlled,
16 interrogated, and manipulated. This interface only works with processes
17 that already exist. Use Pgrab_core(3PROC) for core files and
18 Pcreate(3PROC) to create processes.
19
20 A grabbed process undergoes the following changes unless flags is set to
21 the contrary:
22
23 o The process is stopped
24
25 o All other tracing flags are cleared
26
27 o The grab is exclusive. If any existing handles to this process
|
1 PGRAB(3PROC) Process Control Library Functions PGRAB(3PROC)
2
3 NAME
4 Pgrab - grab and control a process
5
6 LIBRARY
7 Process Control Library (libproc, -lproc)
8
9 SYNOPSIS
10 #include <libproc.h>
11
12 struct ps_prochandle *
13 Pgrab(pid_t pid, int flags, int *perr);
14
15 DESCRIPTION
16 The Pgrab() function attempts to grab the process identified by pid and
17 returns a handle to it that allows the process to be controlled,
18 interrogated, and manipulated. This interface only works with processes
19 that already exist. Use Pgrab_core(3PROC) for core files and
20 Pcreate(3PROC) to create processes.
21
22 A grabbed process undergoes the following changes unless flags is set to
23 the contrary:
24
25 o The process is stopped
26
27 o All other tracing flags are cleared
28
29 o The grab is exclusive. If any existing handles to this process
|