bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Script shell suspends after executing second child process


From: konsolebox
Subject: Script shell suspends after executing second child process
Date: Thu, 12 Nov 2015 18:27:53 +0800

My interactive (using `read`) Bash-script application still suspends
itself after
executing second instance of a player.  I've only seen this happen in
the newest development version of Bash.

I tried to debug calls to functions in shtty.c and changes in
attributes made through them but I haven't seen anything
unusual as compared to the behavior in 4.3.  I also tried examining
stuffs in sig.c, nosig.c et al but I'm still unfamiliar with signal
handling and some conditionals are just too confusing for me.  Not
sure where to start or which significant part I should try to tackle.

The application executes player processes in an input pipe using `exec
N>` and process substitution.  No extra (sub)shell is also left
running as I use `exec` inside the process substitution command.

Code: http://sourceforge.net/p/playshell/code/ci/master/tree/
Bash version: 4.4-alpha to 20151106

# ./bash $(which playshell)
PlayShell 0.2-AfterRC1
Checking players.
Loading playlist.
Video output is disabled.
Repeating is enabled.
Shuffling is enabled.
Pause between plays is 5-10 seconds.
Restoring commands history.
: x
Playing |8| John Mayer - My Stupid Mouth.flac.
Waiting for 8 seconds.
Playing |3| John Mayer - Clarity.flac.
:
[1]+  Stopped                 ./bash $(which playshell)

Attachment: shtty.c
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]