- fputc(EOF, output); //If it was, tell it to stop with EOF
- usleep(500000); //Give it 1/2 a second to respond...
- if (kill(pid, 0) == 0) //Check if its still running
+ //fputc(EOF, output); //If it was, tell it to stop with EOF
+
+ TimerThread timer(2); //Wait for 2 seconds
+ timer.Start();
+ while (!timer.Finished())