From 693ffb8466ada58ecc59fde754ba79fc6f51528d Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 2 May 2000 02:23:41 +0000 Subject: 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. (This used to be commit 148628b616b5c29ba6340d65fc3ddbcabba6e67a) --- source3/auth/pass_check.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/auth') diff --git a/source3/auth/pass_check.c b/source3/auth/pass_check.c index c3e5669747..0496ed9961 100644 --- a/source3/auth/pass_check.c +++ b/source3/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) -- cgit