From d89e7d75962bf912662d530143f721964cdeabc6 Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 17 Feb 2007 19:28:30 +0000 Subject: /emu/port/devip.c allow reopen of ctl --- emu/port/devip.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'emu/port/devip.c') diff --git a/emu/port/devip.c b/emu/port/devip.c index 8572a184..45ea39fa 100644 --- a/emu/port/devip.c +++ b/emu/port/devip.c @@ -443,6 +443,8 @@ ipopen(Chan *c, int omode) if(cv->inuse == 1) { kstrdup(&cv->owner, up->env->user); cv->perm = 0660; + if(cv->sfd < 0) + cv->sfd = so_socket(p->stype); } poperror(); qunlock(&cv->l); @@ -510,6 +512,7 @@ closeconv(Conv *cv) cv->perm = 0660; /* cv->p->close(cv); */ cv->state = Idle; + cv->restricted = 0; fd = cv->sfd; cv->sfd = -1; if(fd >= 0) -- cgit v1.2.3