summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-17 06:36:08 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-17 06:36:08 +0000
commite959f2e2322cfac811946d418406267629a2c12b (patch)
tree84205289f154795242b9bf47420c6c848c450cd0 /source3/include
parent20d3988e06c0b8eab7a63ece62c538e8eeee130e (diff)
downloadsamba-e959f2e2322cfac811946d418406267629a2c12b.tar.gz
samba-e959f2e2322cfac811946d418406267629a2c12b.tar.bz2
samba-e959f2e2322cfac811946d418406267629a2c12b.zip
fixed a potential problem with wins_write_database() child processes.
In sig_term() we were calling wins_write_database(0) which would fork a child. This child might then get killed by the same process killing off the parent. That process would then fork another child etc. The solution is to pass a "background" flag to wins_write_database(0) and only fork if this is set. (This used to be commit 1e1a512e3ff59f962fb3de382f671618bed60839)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/proto.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index a864cd7033..f2b74b4076 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -825,7 +825,7 @@ void wins_process_name_query_request(struct subnet_record *subrec,
void wins_process_name_release_request(struct subnet_record *subrec,
struct packet_struct *p);
void initiate_wins_processing(time_t t);
-void wins_write_database(void);
+void wins_write_database(BOOL background);
/*The following definitions come from nmbd/nmbd_workgroupdb.c */
@@ -1744,11 +1744,6 @@ void file_chain_reset(void);
void file_chain_save(void);
void file_chain_restore(void);
-/*The following definitions come from smbd/groupname.c */
-
-void load_groupname_map(void);
-void map_gid_to_sid( gid_t gid, DOM_SID *psid);
-
/*The following definitions come from smbd/ipc.c */
int reply_trans(connection_struct *conn, char *inbuf,char *outbuf, int size, int bufsize);