POSTNOTE(3)

NAME
postnote - send a note to a process or process group

SYNOPSIS
#include <u.h>
#include <libc.h>

int	postnote(int who, int pid, char *note)

DESCRIPTION
Postnote sends a note to a process or process group. If who is PNPROC, then note is sent to the process with id pid. If who is PNGROUP, the note is delivered to the process group which has the process with id pid as a member. For PNGROUP only, if the calling process is in the target group, the note is not delivered to that process.

If the write is successful, zero is returned. Otherwise -1 is returned.

SOURCE
/usr/local/plan9/src/lib9/postnote.c

SEE ALSO
notify(3), intro(3)

DIAGNOSTICS
Sets errstr.