Re: Simultaneous system calls...by djerius (Beadle)
|on Feb 06, 2014 at 20:36 UTC||Need Help??|
I've got a quick first question. Why are you using gnome-terminal to run fio? Could you not simply run it directly? Is fio an interactive program? If it isn't, then running it via gnome-terminal doesn't buy you anything (but pain).
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, while
waits for the sleep to complete before returning.
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.