Blob


1 .TH POSTNOTE 3
2 .SH NAME
3 postnote \- send a note to a process or process group
4 .SH SYNOPSIS
5 .B #include <u.h>
6 .br
7 .B #include <libc.h>
8 .PP
9 .nf
10 .B
11 int postnote(int who, int pid, char *note)
12 .fi
13 .SH DESCRIPTION
14 .I Postnote
15 sends a note to a process or process group.
16 If
17 .I who
18 is
19 .BR PNPROC ,
20 then
21 .I note
22 is sent to the process with id
23 .IR pid .
24 If
25 .I who
26 is
27 .BI PNGROUP ,
28 the note is delivered to the
29 process group which has the process with id
30 .I pid
31 as a member.
32 For
33 .B PNGROUP
34 only, if the calling process is in the target group, the note is
35 .I not
36 delivered to that process.
37 .PP
38 If the write is successful, zero is returned.
39 Otherwise \-1 is returned.
40 .SH SOURCE
41 .B \*9/src/lib9/postnote.c
42 .SH "SEE ALSO"
43 .IR notify (3),
44 .IR intro (3)
45 .SH DIAGNOSTICS
46 Sets
47 .IR errstr .