ref: 106cbc54a185bca1efa644f3aed97a4b3e5e35eb
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)
{
	return write(ctl, "hangup", sizeof("hangup")-1) != sizeof("hangup")-1;
}