summaryrefslogtreecommitdiff
path: root/source3/smbwrapper/wrapped.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-06 12:23:37 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-06 12:23:37 +0000
commitfff618aeb4142773ff388ac9b52d127a510c6690 (patch)
tree72043a849d02ac89ee7dac20f8ae04830ea8832d /source3/smbwrapper/wrapped.c
parent4fe9c5b65614d048c053989ab3d1e97b1bbcfa2b (diff)
downloadsamba-fff618aeb4142773ff388ac9b52d127a510c6690.tar.gz
samba-fff618aeb4142773ff388ac9b52d127a510c6690.tar.bz2
samba-fff618aeb4142773ff388ac9b52d127a510c6690.zip
added a wrapper for fork()
in a fork we have to close all server connections otherwise we can end up with two processes writing to the same socket. (This used to be commit b7ecbca3aff34ff06a445e5ee39efba48261b7e8)
Diffstat (limited to 'source3/smbwrapper/wrapped.c')
-rw-r--r--source3/smbwrapper/wrapped.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbwrapper/wrapped.c b/source3/smbwrapper/wrapped.c
index bda0ed1abe..10b22b35dd 100644
--- a/source3/smbwrapper/wrapped.c
+++ b/source3/smbwrapper/wrapped.c
@@ -908,3 +908,8 @@ static void dirent64_convert(struct dirent *d, struct dirent64 *d64)
return real_readdir64(dir);
}
#endif
+
+ int fork(void)
+{
+ return smbw_fork();
+}