80cc38a1af
between creation of a file descriptor and close(2) when using kernel assisted threads. What we do is stick descriptors in the table, but mark them as "larval". This causes essentially everything to treat it as a non-existent descriptor, except for fdalloc(), which sees a filled slot so that it won't (incorrectly) allocate it again. When a descriptor is fully constructed, the code that has constructed it marks it as "mature" (which actually clears the "larval" flag), and things continue to work as normal. While here, gather all the code that gets a descriptor from the table into a fd_getfile() function, and call it, rather than having the same (sometimes incorrect) code copied all over the place. |
||
---|---|---|
.. | ||
iconv.c | ||
iconv.h | ||
Makefile | ||
netbios.h | ||
smb_conn.c | ||
smb_conn.h | ||
smb_crypt.c | ||
smb_dev.c | ||
smb_dev.h | ||
smb_lib.h | ||
smb_lock.c | ||
smb_lock.h | ||
smb_rap.h | ||
smb_rq.c | ||
smb_rq.h | ||
smb_smb.c | ||
smb_subr.c | ||
smb_subr.h | ||
smb_tran.h | ||
smb_trantcp.c | ||
smb_trantcp.h | ||
smb_usr.c | ||
smb.h |