Mark filp as in use on fd dup'ing
This commit is contained in:
parent
71533c8a83
commit
9f9f893123
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue