X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=src%2Fiwrapper.c;h=3b31cbe235c2b4b751535cfe79656ce71f024eee;hb=e8627523c8a8cddca30e63e3213009df9ff280de;hp=19435e847896779d93afbcc84d155abd6312df70;hpb=d8ffb1d8f28c456bee59730816a5ee276da76399;p=moe.git diff --git a/src/iwrapper.c b/src/iwrapper.c index 19435e8..3b31cbe 100644 --- a/src/iwrapper.c +++ b/src/iwrapper.c @@ -150,18 +150,21 @@ main(int argc, char **argv) if (!WIFEXITED(sbox)) die("Sandbox fault, status=%x", sbox); - if (!WIFEXITED(schk)) + if (!WIFEXITED(schk) || WEXITSTATUS(schk) >= 100) die("Checker fault, status=%x", schk); if (WEXITSTATUS(sbox)) { copy(boxepipe[0]); + copy(chkepipe[0]); return 1; } else if (WEXITSTATUS(schk)) { copy(chkepipe[0]); + copy(boxepipe[0]); return 1; } copy(boxepipe[0]); + copy(chkepipe[0]); return 0; }