diff options
author | Jeremy Allison <jra@samba.org> | 2003-08-19 01:53:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-08-19 01:53:45 +0000 |
commit | 6d6401a67a9985c8c51175db520114dc2ef421ce (patch) | |
tree | 9392728e28dbd5afee4a72d44e23ed1cdffb68c4 /source3/smbd/files.c | |
parent | c0236e8ae32af5480b14ac57677dc983e786d3d5 (diff) | |
download | samba-6d6401a67a9985c8c51175db520114dc2ef421ce.tar.gz samba-6d6401a67a9985c8c51175db520114dc2ef421ce.tar.bz2 samba-6d6401a67a9985c8c51175db520114dc2ef421ce.zip |
Implement SMBexit properly. Found by Samba4 tester. You must do a make
clean proto all; after this commit.
Jeremy.
(This used to be commit 27af1f9feab12542dc538bfceac4593e644ba3b4)
Diffstat (limited to 'source3/smbd/files.c')
-rw-r--r-- | source3/smbd/files.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 186fa96d7d..1fe6f250e5 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -143,6 +143,22 @@ void file_close_conn(connection_struct *conn) } /**************************************************************************** + Close all open files for a pid. +****************************************************************************/ + +void file_close_pid(uint16 smbpid) +{ + files_struct *fsp, *next; + + for (fsp=Files;fsp;fsp=next) { + next = fsp->next; + if (fsp->file_pid == smbpid) { + close_file(fsp,False); + } + } +} + +/**************************************************************************** Initialise file structures. ****************************************************************************/ |