Okay, I didn't think this would be complicated, but I haven't gotten it to work....I figured I would try here.
I've got this app that runs interactive, starts several other processes using pThreads. Doesn't require keystrokes, but displays info in the terminal window that is important for the user to see. I also need to execute a system function during a certain event.
I have one of the threads call an outside system command, using the system() function, but this causes problems. It seems to knock the processes into a sleep state, and I get no further output.
What would be the best way to call an external function like this, without loosing my foreground process?
I've got this app that runs interactive, starts several other processes using pThreads. Doesn't require keystrokes, but displays info in the terminal window that is important for the user to see. I also need to execute a system function during a certain event.
I have one of the threads call an outside system command, using the system() function, but this causes problems. It seems to knock the processes into a sleep state, and I get no further output.
What would be the best way to call an external function like this, without loosing my foreground process?