shithub: front

ref: 1c793f2803e0eecb47a1f6e6847e3749d8fd7173
dir: /sys/src/libc/port/hangup.c/

View raw version
#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;
}