summaryrefslogtreecommitdiff
path: root/emu/port/devip.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2007-02-17 19:28:30 +0000
committerCharles.Forsyth <devnull@localhost>2007-02-17 19:28:30 +0000
commitd89e7d75962bf912662d530143f721964cdeabc6 (patch)
tree11829f023cdf28ec1f8f16278dccd16bf235bd29 /emu/port/devip.c
parent7c0f99b8db39711e75277f51fce3f61e245a0e4e (diff)
/emu/port/devip.c allow reopen of ctl
Diffstat (limited to 'emu/port/devip.c')
-rw-r--r--emu/port/devip.c3
1 files changed, 3 insertions, 0 deletions
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)