service: close instance pipe fd on restart.
authorYousong Zhou <yszhou4tech@gmail.com>
Sun, 14 Jun 2015 04:14:47 +0000 (12:14 +0800)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 14 Jun 2015 16:30:59 +0000 (18:30 +0200)
commit46954a519259e1818117adee133c119dedbd4523
tree5a994f9aee608f5070d0ccd5974c2aed0086cbbb
parent6a746e16105f5ad928d80f7584515f7e6ebb2005
service: close instance pipe fd on restart.

Otherwise we hit max number of fd limit (1024) and instances fail to
start with the following errors in syslog

    Sun Jun 14 01:27:38 2015 daemon.warn procd: pipe() failed: 24 (Too many open files)

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
service/instance.c