initd: fix descriptor leak
authorJo-Philipp Wich <jo@mein.io>
Tue, 17 May 2016 15:00:47 +0000 (17:00 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 16 May 2016 19:00:54 +0000 (21:00 +0200)
commit8c24d75f610f85397273c5332657ba77e85b4323
tree7a673ab7223c1003b0265f61c47f2c55c5294cf3
parent38dd221a41ca93155b0427be4f5d536173dbd111
initd: fix descriptor leak

Close the descriptor to /tmp/.preinit returned by creat() in order to avoid
an fd leak in the init process.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
initd/preinit.c