diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-08-08 22:34:59 +1000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-08-13 11:54:12 +0200 |
commit | 416fa081ab9d0a5338a11924d7b85c8e159a5109 (patch) | |
tree | 7c9635eb74f0a4f7c233097ab3ae1985fa083efa /source3/smbd/conn.c | |
parent | b5f4373be5ac0de57dffd8721f41fa1ff1e96182 (diff) | |
download | samba-416fa081ab9d0a5338a11924d7b85c8e159a5109.tar.gz samba-416fa081ab9d0a5338a11924d7b85c8e159a5109.tar.bz2 samba-416fa081ab9d0a5338a11924d7b85c8e159a5109.zip |
ensure we exit with non-zero status on EOF on socket, so the parent
can trigger a brlock db cleanup
(This used to be commit bbd49f9e1c4b50c4a596fb991f3306e1e90c0177)
Diffstat (limited to 'source3/smbd/conn.c')
-rw-r--r-- | source3/smbd/conn.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/smbd/conn.c b/source3/smbd/conn.c index 1a67ac9b32..b9433bb965 100644 --- a/source3/smbd/conn.c +++ b/source3/smbd/conn.c @@ -161,16 +161,19 @@ find_again: /**************************************************************************** Close all conn structures. +return true if any were closed ****************************************************************************/ - -void conn_close_all(void) +bool conn_close_all(void) { connection_struct *conn, *next; + bool ret = false; for (conn=Connections;conn;conn=next) { next=conn->next; set_current_service(conn, 0, True); close_cnum(conn, conn->vuid); + ret = true; } + return ret; } /**************************************************************************** |