use 'test -n "..."' instead of 'test "..."'; when "..." expands to '-v'
[util-vserver.git] / util-vserver / src / context-sync.hc
index ed050a0..9bb5d29 100644 (file)
@@ -83,7 +83,7 @@ waitOnSync(pid_t pid, int p[2][2], bool is_prevent_race)
   
   Eclose(p[1][1]);
   l = Eread(p[1][0], &c, 1);
-  if (l!=1) exitLikeProcess(pid);
+  if (l!=1) exitLikeProcess(pid,0, wrapper_exit_code);
   l = Eread(p[1][0], &c, 1);
-  if (l!=0) exitLikeProcess(pid);
+  if (l!=0) exitLikeProcess(pid,0, wrapper_exit_code);
 }