s!write()!Vwrite()! at some places
[util-vserver.git] / util-vserver / src / context-sync.hc
index ed050a0..07a72de 100644 (file)
@@ -47,7 +47,7 @@ doSyncStage1(int p[2][2], bool do_disconnect)
 
   if (!do_disconnect) return;
   
-  fd = Eopen("/dev/null", O_RDONLY|O_NONBLOCK, 0);
+  fd = EopenD("/dev/null", O_RDONLY|O_NONBLOCK, 0);
   Esetsid();
   Edup2(fd, 0);
   Eclose(p[1][0]);
@@ -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);
 }