is there anyway to make your program continue running after using the system() function to run /bin/bash?
or is there a function to do that?
is there anyway to make your program continue running after using the system() function to run /bin/bash?
or is there a function to do that?
The C Standard does not include such a function!
but most OS provide some :-)
Hope you don't mind my bad english, I'm Austrian!
You could always fork off a process to run your shell, but consider using pthreads. You could give your shell call its own thread of execution and still allow your 'main process' (which simply has its own thread of execution) to continue.
Jason Deckard