Author: jra
Date: 2007-06-04 23:51:19 +0000 (Mon, 04 Jun 2007)
New Revision: 23348

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23348

Log:
Fix connection reporting on SIGUSR2 (noticed by
Herb).
Jeremy.

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd.c
   branches/SAMBA_3_0_25/source/nsswitch/winbindd.c
   branches/SAMBA_3_0_26/source/nsswitch/winbindd.c


Changeset:
Modified: branches/SAMBA_3_0/source/nsswitch/winbindd.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd.c       2007-06-04 23:31:34 UTC 
(rev 23347)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd.c       2007-06-04 23:51:19 UTC 
(rev 23348)
@@ -315,6 +315,9 @@
        if (state->mem_ctx == NULL)
                return;
 
+       /* Remember who asked us. */
+       state->pid = state->request.pid;
+
        /* Process command */
 
        for (table = dispatch_table; table->fn; table++) {

Modified: branches/SAMBA_3_0_25/source/nsswitch/winbindd.c
===================================================================
--- branches/SAMBA_3_0_25/source/nsswitch/winbindd.c    2007-06-04 23:31:34 UTC 
(rev 23347)
+++ branches/SAMBA_3_0_25/source/nsswitch/winbindd.c    2007-06-04 23:51:19 UTC 
(rev 23348)
@@ -303,6 +303,9 @@
        if (state->mem_ctx == NULL)
                return;
 
+       /* Remember who asked us. */
+       state->pid = state->request.pid;
+
        /* Process command */
 
        for (table = dispatch_table; table->fn; table++) {

Modified: branches/SAMBA_3_0_26/source/nsswitch/winbindd.c
===================================================================
--- branches/SAMBA_3_0_26/source/nsswitch/winbindd.c    2007-06-04 23:31:34 UTC 
(rev 23347)
+++ branches/SAMBA_3_0_26/source/nsswitch/winbindd.c    2007-06-04 23:51:19 UTC 
(rev 23348)
@@ -320,6 +320,9 @@
        if (state->mem_ctx == NULL)
                return;
 
+       /* Remember who asked us. */
+       state->pid = state->request.pid;
+
        /* Process command */
 
        for (table = dispatch_table; table->fn; table++) {

Reply via email to