summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/src/9/ip/udp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/src/9/ip/udp.c b/sys/src/9/ip/udp.c
index 0f79b413f..910892b4b 100644
--- a/sys/src/9/ip/udp.c
+++ b/sys/src/9/ip/udp.c
@@ -518,6 +518,11 @@ udpctl(Conv *c, char **f, int n)
ucb = (Udpcb*)c->ptcl;
if(n == 1){
+ if(strcmp(f[0], "hangup") == 0){
+ qhangup(c->rq, nil);
+ qhangup(c->wq, nil);
+ return nil;
+ }
if(strcmp(f[0], "headers") == 0){
ucb->headers = 7; /* new headers format */
return nil;