summaryrefslogtreecommitdiff
path: root/emu/port/devip.c
diff options
context:
space:
mode:
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)