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 containing the process with id
30 .IR pid .
31 For
32 .B PNGROUP
33 only, if the calling process is in the target group, the note is
34 .I not
35 delivered to that process.
36 .PP
37 Returns zero if the write succeeds, otherwise \-1.
38 .SH SOURCE
39 .B \*9/src/lib9/postnote.c
40 .SH "SEE ALSO"
41 .MR notify (3) ,
42 .MR intro (3)
43 .SH DIAGNOSTICS
44 Sets
45 .IR errstr .