aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2012-02-26 05:57:55 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2012-02-26 05:57:55 +0100
commit83784116cdb06f89f9e4b6f136a07cddb2e1fa29 (patch)
treebec701470db3f2dfc249ade910a36bf722d6f08c
parentInitial commit. (diff)
downloadStripe-CTF-83784116cdb06f89f9e4b6f136a07cddb2e1fa29.tar.xz
Stripe-CTF-83784116cdb06f89f9e4b6f136a07cddb2e1fa29.zip
Total reliability.
-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;