Bug 9561

Summary: Output redirection for daemons caused error
Product: Busybox Reporter: Christian Winkler <winkler_chr>
Component: Standard ComplianceAssignee: unassigned
Status: VERIFIED FIXED    
Severity: major CC: busybox-cvs, busybox
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Christian Winkler 2017-01-05 16:44:06 UTC
test script on promt:


$( (start-stop-daemon -S -q -b -x sleep -- 5 2>/dev/null) 2>&1 )

***the command waiting for 5 sec until promt ***


$( (start-stop-daemon -S -q -b -x sleep -- 5) 2>&1 )

***without redirect to 2>/dev/null show direct the promt without waiting***



The problem does not exist with all older versions <= 1.25.1 

The behavior is reproducible with every other services e.g. rpcbind from nfs
Comment 1 Denys Vlasenko 2017-01-07 09:20:28 UTC
Yes, it's a bug.
Fixed in git, please try it and reopen if it still does not work correctly.
Comment 2 Claus Muus 2017-01-07 14:36:33 UTC
Thanks.
I have test the commit 86584e134eec1a81298149f8c04c77727f6dccb9 and it's fixed with this.