[PATCH] hush - non-interactive-shell-job-fix

Bayram Kurumahmut kbayram at ubicom.com
Tue Jun 2 20:48:16 UTC 2009



Some script files were not returning to the shell before this fix.

cmd1
cmd2
cmd3 & ----> this line was causing problems.
cmd4

A comment extracted from hush:

"....non-interactive bash does not continue if all processes in fg pipe are stopped...."

It seems that we must return if there is no stopped or alive process in non-interactive shell. If we don't, code is stopping on waitpid() but there is no process to wait.

Regards,
Bayram
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090602/a8452c44/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: noninteractive-shell-job-fix.patch
Type: text/x-diff
Size: 411 bytes
Desc: noninteractive-shell-job-fix.patch
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090602/a8452c44/attachment.bin>


More information about the busybox mailing list