[PATCH] start-stop-daemon: close extra fds on --background
Roy Marples
roy at marples.name
Tue Jul 1 03:08:23 PDT 2008
On Tuesday 01 July 2008 13:03:00 Denys Vlasenko wrote:
> > I would expect this to work
> >
> > echo "password" |
> > start-stop-daemon --start --exec /usr/sbin/pppd --background -- plugins
> > passwdfd 0
> >
> > Your patch would break that yes?
>
> It already does not work, if I read code correctly (bb_daemonize() closes
> fds 0,1,2). --
> vda
Curses!
Well, the only place I know of where is needed is for passing a password to
pppd plugin and the Gentoo specific version of dhclient where it accepts a
config file via stdin.
Neither use the background argument so it will probably be unaffected.
Thanks
Roy
More information about the busybox
mailing list