hangup.c 189 B

123456789101112
  1. #include <u.h>
  2. #include <libc.h>
  3. #include <ctype.h>
  4. /*
  5. * force a connection to hangup
  6. */
  7. int
  8. hangup(int ctl)
  9. {
  10. return write(ctl, "hangup", sizeof("hangup")-1) != sizeof("hangup")-1;
  11. }