Changeset 140 for branches/samba-3.0/source/nsswitch/winbindd.c
- Timestamp:
- Jul 11, 2008, 1:13:42 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/nsswitch/winbindd.c
r134 r140 118 118 /* Handle the signal by unlinking socket and exiting */ 119 119 120 static void terminate(void) 121 { 122 pstring path; 123 124 /* Remove socket file */ 125 pstr_sprintf(path, "%s/%s", 126 WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); 127 unlink(path); 120 static void terminate(bool in_parent) 121 { 122 if (in_parent) { 123 /* When parent goes away we should 124 * remove the socket file. Not so 125 * when children terminate. 126 */ 127 128 pstring path; 129 130 /* Remove socket file */ 131 pstr_sprintf(path, "%s/%s", 132 WINBINDD_SOCKET_DIR, WINBINDD_SOCKET_NAME); 133 unlink(path); 134 } 128 135 129 136 idmap_close(); … … 732 739 733 740 /* check if TERM has been received */ 734 void winbind_check_sigterm( void)741 void winbind_check_sigterm(bool in_parent) 735 742 { 736 743 if (do_sigterm) 737 terminate( );744 terminate(in_parent); 738 745 } 739 746 … … 902 909 /* Check signal handling things */ 903 910 904 winbind_check_sigterm( );911 winbind_check_sigterm(true); 905 912 winbind_check_sighup(); 906 913
Note:
See TracChangeset
for help on using the changeset viewer.