diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-02 02:23:41 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-02 02:23:41 +0000 |
commit | 148628b616b5c29ba6340d65fc3ddbcabba6e67a (patch) | |
tree | f8482fb2dcfa68baeb38a38e2c73ee105abb00a2 /source/smbd/files.c | |
parent | 3b25f7368be3877e9ad27498bc9451ec88d4b07f (diff) | |
download | samba-148628b616b5c29ba6340d65fc3ddbcabba6e67a.tar.gz samba-148628b616b5c29ba6340d65fc3ddbcabba6e67a.tar.xz samba-148628b616b5c29ba6340d65fc3ddbcabba6e67a.zip |
Added sys_fork() and sys_getpid() functions to stop the overhead
of doing a system call every time we want to just get our pid.
Jeremy.
Diffstat (limited to 'source/smbd/files.c')
-rw-r--r-- | source/smbd/files.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/files.c b/source/smbd/files.c index e644f52669f..5b930f99400 100644 --- a/source/smbd/files.c +++ b/source/smbd/files.c @@ -55,7 +55,7 @@ files_struct *file_new(void ) increases the chance that the errant client will get an error rather than causing corruption */ if (first_file == 0) { - first_file = (getpid() ^ (int)time(NULL)) % real_max_open_files; + first_file = (sys_getpid() ^ (int)time(NULL)) % real_max_open_files; } i = bitmap_find(file_bmap, first_file); |