aboutsummaryrefslogtreecommitdiffstats
path: root/level06.c
diff options
context:
space:
mode:
Diffstat (limited to 'level06.c')
-rw-r--r--level06.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/level06.c b/level06.c
index 6efac4e..48c79c2 100644
--- a/level06.c
+++ b/level06.c
@@ -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;