ref: 06335925f66a7b4da09c849c21e96eb43e1c9be9
dir: /sys/src/libc/port/hangup.c/
#include <u.h> #include <libc.h> #include <ctype.h> /* * force a connection to hangup */ int hangup(int ctl) { static char msg[] = "hangup"; return write(ctl, msg, sizeof(msg)-1) != sizeof(msg)-1; }