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/auth | |
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/auth')
-rw-r--r-- | source/auth/pass_check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/auth/pass_check.c b/source/auth/pass_check.c index c3e56697476..0496ed9961f 100644 --- a/source/auth/pass_check.c +++ b/source/auth/pass_check.c @@ -439,7 +439,7 @@ static BOOL dfs_auth(char *user, char *password) } DEBUG(0, ("DCE login succeeded for principal %s on pid %d\n", - user, getpid())); + user, sys_getpid())); DEBUG(3, ("DCE principal: %s\n" " uid: %d\n" @@ -487,7 +487,7 @@ void dfs_unlogin(void) dce_error_inq_text(err, dce_errstr, &err2); DEBUG(0, ("DCE purge login context failed for server instance %d: %s\n", - getpid(), dce_errstr)); + sys_getpid(), dce_errstr)); } } #endif @@ -595,7 +595,7 @@ static BOOL krb4_auth(char *user, char *password) } (void)slprintf(tkfile, sizeof(tkfile) - 1, "/tmp/samba_tkt_%d", - (int)getpid()); + (int)sys_getpid()); krb_set_tkt_string(tkfile); if (krb_verify_user(user, "", realm, password, 0, "rmcd") == KSUCCESS) |