Wrote python script to simulate a round
[progcomp2012.git] / manager / program.cpp
index 8b4e4af..acf501e 100644 (file)
@@ -72,7 +72,7 @@ Program::~Program()
        if (kill(pid, 0) == 0) //Check if the process created is still running...
        {
                fputc(EOF, output); //If it was, tell it to stop with EOF
-               sleep(1); //Give it 1 second to respond...
+               usleep(500000); //Give it 1/2 a second to respond...
                if (kill(pid, 0) == 0) //Check if its still running
                {
                        kill(pid, 9); //Slay the infidel mercilessly!

UCC git Repository :: git.ucc.asn.au