From: Thomas Veerman Date: Fri, 16 Dec 2011 08:43:01 +0000 (+0000) Subject: Mark filp as in use on fd dup'ing X-Git-Tag: v3.2.0~167 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/host.html?a=commitdiff_plain;h=9f9f89312359dd80ed20b6cfe4c2b3fe893e185b;p=minix.git Mark filp as in use on fd dup'ing --- diff --git a/servers/avfs/misc.c b/servers/avfs/misc.c index f05352619..2cb7f3b8b 100644 --- a/servers/avfs/misc.c +++ b/servers/avfs/misc.c @@ -168,6 +168,7 @@ PUBLIC int do_fcntl() else if ((r = get_fd(m_in.addr, 0, &new_fd, NULL)) == OK) { f->filp_count++; fp->fp_filp[new_fd] = f; + FD_SET(new_fd, &fp->fp_filp_inuse); r = new_fd; } break;