process_standard: Move child pipe setup further down standard_accept_connection()
authorGary Lockyer <gary@catalyst.net.nz>
Thu, 19 Oct 2017 02:14:16 +0000 (15:14 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 19 Oct 2017 03:33:10 +0000 (05:33 +0200)
commit193afc55e6e467fa362ad93ea09ba0a92b6074a5
tree9b721d916abc5b6e1c6e51fe6b59eac914f34e31
parent17d3a9d431c2babb730b7e35c076ee714ca6a9df
process_standard: Move child pipe setup further down standard_accept_connection()

This avoids cleaning up on error from accept() but more importantly
allows a future mode that acts like process_single and so has no child.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
source4/smbd/process_standard.c