@@ -1035,7 +1035,6 @@ void nsexec(void)
1035
1035
/* Get the stage-2 pid. */
1036
1036
if (read (syncfd , & stage2_pid , sizeof (stage2_pid )) != sizeof (stage2_pid )) {
1037
1037
sane_kill (stage1_pid , SIGKILL );
1038
- sane_kill (stage2_pid , SIGKILL );
1039
1038
bail ("failed to sync with stage-1: read(stage2_pid)" );
1040
1039
}
1041
1040
@@ -1234,23 +1233,17 @@ void nsexec(void)
1234
1233
if (config .mountsources ) {
1235
1234
write_log (DEBUG , "request stage-0 to send mount sources" );
1236
1235
s = SYNC_MOUNTSOURCES_PLS ;
1237
- if (write (syncfd , & s , sizeof (s )) != sizeof (s )) {
1238
- sane_kill (stage2_pid , SIGKILL );
1236
+ if (write (syncfd , & s , sizeof (s )) != sizeof (s ))
1239
1237
bail ("failed to sync with parent: write(SYNC_MOUNTSOURCES_PLS)" );
1240
- }
1241
1238
1242
1239
/* Receive and install all mount sources fds. */
1243
1240
receive_mountsources (syncfd );
1244
1241
1245
1242
/* Parent finished to send the mount sources fds. */
1246
- if (read (syncfd , & s , sizeof (s )) != sizeof (s )) {
1247
- sane_kill (stage2_pid , SIGKILL );
1243
+ if (read (syncfd , & s , sizeof (s )) != sizeof (s ))
1248
1244
bail ("failed to sync with parent: read(SYNC_MOUNTSOURCES_ACK)" );
1249
- }
1250
- if (s != SYNC_MOUNTSOURCES_ACK ) {
1251
- sane_kill (stage2_pid , SIGKILL );
1245
+ if (s != SYNC_MOUNTSOURCES_ACK )
1252
1246
bail ("failed to sync with parent: SYNC_MOUNTSOURCES_ACK: got %u" , s );
1253
- }
1254
1247
}
1255
1248
1256
1249
/*
0 commit comments