os-posix: reorder parent notification for -daemonize
commit25cec2b896a977565ca04e5c649aab8c6e48bda8
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 30 Oct 2014 14:47:46 +0000 (30 17:47 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Sun, 2 Nov 2014 07:04:34 +0000 (2 10:04 +0300)
treeab6118211c4a00a0b2c60f075ba4562ff05d58c8
parentfee78fd6d2f8dfdfd447a33c34323dd5bd3193a2
os-posix: reorder parent notification for -daemonize

Put "success" parent reporting in os_setup_post() to after
all other initializers which may also fail, to the very end,
so more possible failure cases are reported properly to the
calling process.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Gonglei <arei.gonglei@huawei.com>
os-posix.c