diff options
-rw-r--r-- | level06.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,8 +17,8 @@ int teststr(const char *str) close(out[1]); wait(NULL); unlink("./tmp"); - usleep(30000); // This is way longer than it has to be - // for the purposes of looking awesome. + while (getpgid(getpid() + 2) == getpid()) + usleep(100); status = read(out[0], NULL, 1); close(out[0]); return status == 0; |