On Fri, Nov 3, 2023 at 11:31 PM Louai Al-Khanji <[email protected]> wrote:
>
> On Wed, Nov 1, 2023 at 11:53 PM Louai Al-Khanji <[email protected]> wrote:
> >
> > Hi,
> >
> > I am interested in implementing the -o|--output option that the Debian 
> > start-stop-daemon supports. Might such a patch be considered for 
> > upstreaming?
> >
> > Thanks,
> > Louai
>
> Hello,
>
> Attached is a proposed patch. Any feedback would be appreciated.

My experiments with ssd version 1.21.22 show that the file is opened with
O_CREAT|O_APPEND, and it does not allow -O without -b.

If execv fails, error message goes to this file.
IOW: there is no need to save/restore old stderr fd. Just replace it
with the new fd
(and don't forget to not leak any extra open fds).
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to