in reply to Simultaneous system calls...
On to your original question.
What happens when you run your gnome-terminal command directly from a shell prompt? Does it wait for the fio command to finish before returning, or does it return immediately?
When I run gnome-terminal from the command line, it returns immediately, the terminal is created and displayed.
However, if I run gnome-terminal --disable-factory it hangs around until the terminal exits.
So, for example,
returns immediately, whilegnome-terminal -e "sleep 10"
waits for the sleep to complete before returning.gnome-terminal --disable-factory -e "sleep 10"
I'm not sure at all of the ramifications of --disable-factory. The documentation (which is terse and meaningless to me) does not mention this behavior.
You should try running your command directly (e.g. from the command line) before embedding it in your code to make sure it behaves as you expect.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Simultaneous system calls...
by samh785 (Initiate) on Feb 06, 2014 at 22:28 UTC | |
by djerius (Beadle) on Feb 06, 2014 at 22:32 UTC |