Plan B User's Manual


Name

die, atdie, delatdie ­ Natural death.

Synopsis

#include <ulib.h>

void die(char* legacy);
void atdie(void (*f)(void));
void delatdie(char* sel);

Description

Die deletes /b/proc/me causing the death of the process. Before doing so, it writes the given legacy to the process' legacy box. The return from bmain also causes die to be called.

Atdie arranges for f to be called during the execution of die.

Delatdie simply writes the given selector to /b/proc/me/del to cause the given box to be deleted at die.

Source

/src/b/port/ulib.c

See also

proc(4).


Plan B User's Manual. First edition.