diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-05-07 15:31:12 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:54 -0500 |
commit | be7bac55c37676a8137c59a22dfb2e4c4821ac21 (patch) | |
tree | 7281783dc3efef808fb29d8e6f7a33071dd116e7 /source/smbd | |
parent | a66a04e9f11f6c4462f2b56b447bae4eca7b177c (diff) | |
download | samba-be7bac55c37676a8137c59a22dfb2e4c4821ac21.tar.gz samba-be7bac55c37676a8137c59a22dfb2e4c4821ac21.tar.xz samba-be7bac55c37676a8137c59a22dfb2e4c4821ac21.zip |
r22751: Next step for the cluster merge: sessionid.tdb should contain a 'struct
server_id' instead of a 'uint32 pid'
Diffstat (limited to 'source/smbd')
-rw-r--r-- | source/smbd/session.c | 2 | ||||
-rw-r--r-- | source/smbd/sesssetup.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/source/smbd/session.c b/source/smbd/session.c index 30ade8aedfb..cd7511430e3 100644 --- a/source/smbd/session.c +++ b/source/smbd/session.c @@ -60,7 +60,7 @@ BOOL session_claim(user_struct *vuser) struct sockaddr sa; struct in_addr *client_ip; struct sessionid sessionid; - uint32 pid = (uint32)sys_getpid(); + struct server_id pid = procid_self(); fstring keystr; char * hostname; int tdb_store_flag; /* If using utmp, we do an inital 'lock hold' store, diff --git a/source/smbd/sesssetup.c b/source/smbd/sesssetup.c index 7dbf20a189e..d6cdf777d8a 100644 --- a/source/smbd/sesssetup.c +++ b/source/smbd/sesssetup.c @@ -1180,11 +1180,11 @@ static int shutdown_other_smbds(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, struct sessionid *sessionid = (struct sessionid *)dbuf.dptr; const char *ip = (const char *)p; - if (!process_exists(pid_to_procid(sessionid->pid))) { + if (!process_exists(sessionid->pid)) { return 0; } - if (sessionid->pid == sys_getpid()) { + if (procid_is_me(&sessionid->pid)) { return 0; } @@ -1192,7 +1192,7 @@ static int shutdown_other_smbds(TDB_CONTEXT *tdb, TDB_DATA kbuf, TDB_DATA dbuf, return 0; } - message_send_pid(pid_to_procid(sessionid->pid), MSG_SHUTDOWN, + message_send_pid(sessionid->pid, MSG_SHUTDOWN, NULL, 0, True); return 0; } |