POSTNOTE(2)                                           POSTNOTE(2)

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

     SYNOPSIS
          int  postnote(int pid, char *note)

     DESCRIPTION
          Postnote sends a note to a process or process group.  If pid
          is positive, note is written to /proc/pid/note.  If it is
          negative, the note is delivered to the process group by
          writing note to /proc/-pid/notepg.

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

     SEE ALSO
          notify(2), intro(2), proc(3)

     DIAGNOSTICS
          Sets errstr.

     Page 1                       Plan 9             (printed 3/28/24)