ref: 0a6bcc7b83d9b5fac12229cac57207b9dc91ba2f
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; }