execute bash?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Apr 8 06:23:10 PDT 2016


On Friday, 8 April 2016 at 10:08:07 UTC, Puming wrote:
> but with each command loop, the program is stopped (equal to 
> Ctrl-Z).

Your program is stopped, right?

Odds are it is that there's terminal output for the background 
process, which sends your program a signal which, by default, 
stops it.

 From man 7 stop:

        SIGSTOP   17,19,23    Stop    Stop process
        SIGTSTP   18,20,24    Stop    Stop typed at terminal
        SIGTTIN   21,21,26    Stop    Terminal input for 
background process
        SIGTTOU   22,22,27    Stop    Terminal output for 
background process



I'd say try catching one of those signals and confirm if it is 
one of them and then figure out what to do next. Maybe ignoring 
the signal is what you want to do.



More information about the Digitalmars-d-learn mailing list