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/sesssetup.c | |
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/sesssetup.c')
-rw-r--r-- | source/smbd/sesssetup.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |