@@ -714,8 +714,8 @@ CraneErr TaskManager::SpawnProcessInInstance_(TaskInstance* instance,
714
714
const std::string& cwd = instance->task .cwd ();
715
715
rc = chdir (cwd.c_str ());
716
716
if (rc == -1 ) {
717
- CRANE_ERROR (" [Child Process] Error: chdir to {}. {}" , cwd.c_str (),
718
- strerror (errno));
717
+ // CRANE_ERROR("[Child Process] Error: chdir to {}. {}", cwd.c_str(),
718
+ // strerror(errno));
719
719
std::abort ();
720
720
}
721
721
@@ -736,13 +736,13 @@ CraneErr TaskManager::SpawnProcessInInstance_(TaskInstance* instance,
736
736
737
737
ok = ParseDelimitedFromZeroCopyStream (&msg, &istream, nullptr );
738
738
if (!ok || !msg.ok ()) {
739
- if (!ok) {
740
- int err = istream.GetErrno ();
741
- CRANE_ERROR (" Failed to read socket from parent: {}" , strerror (err));
742
- }
739
+ // if (!ok) {
740
+ // int err = istream.GetErrno();
741
+ // CRANE_ERROR("Failed to read socket from parent: {}", strerror(err));
742
+ // }
743
743
744
- if (!msg.ok ())
745
- CRANE_ERROR (" Parent process ask not to start the subprocess." );
744
+ // if (!msg.ok())
745
+ // CRANE_ERROR("Parent process ask not to start the subprocess.");
746
746
747
747
std::abort ();
748
748
}
@@ -758,8 +758,8 @@ CraneErr TaskManager::SpawnProcessInInstance_(TaskInstance* instance,
758
758
stdout_fd =
759
759
open (stdout_file_path.c_str (), O_RDWR | O_CREAT | O_TRUNC, 0644 );
760
760
if (stdout_fd == -1 ) {
761
- CRANE_ERROR (" [Child Process] Error: open {}. {}" , stdout_file_path,
762
- strerror (errno));
761
+ // CRANE_ERROR("[Child Process] Error: open {}. {}", stdout_file_path,
762
+ // strerror(errno));
763
763
std::abort ();
764
764
}
765
765
dup2 (stdout_fd, 1 );
@@ -770,8 +770,8 @@ CraneErr TaskManager::SpawnProcessInInstance_(TaskInstance* instance,
770
770
stderr_fd =
771
771
open (stderr_file_path.c_str (), O_RDWR | O_CREAT | O_TRUNC, 0644 );
772
772
if (stderr_fd == -1 ) {
773
- CRANE_ERROR (" [Child Process] Error: open {}. {}" , stderr_file_path,
774
- strerror (errno));
773
+ // CRANE_ERROR("[Child Process] Error: open {}. {}", stderr_file_path,
774
+ // strerror(errno));
775
775
std::abort ();
776
776
}
777
777
dup2 (stderr_fd, 2 ); // stderr -> error file
@@ -795,7 +795,7 @@ CraneErr TaskManager::SpawnProcessInInstance_(TaskInstance* instance,
795
795
ok = SerializeDelimitedToZeroCopyStream (child_process_ready, &ostream);
796
796
ok &= ostream.Flush ();
797
797
if (!ok) {
798
- CRANE_ERROR (" [Child Process] Error: Failed to flush." );
798
+ // CRANE_ERROR("[Child Process] Error: Failed to flush.");
799
799
std::abort ();
800
800
}
801
801
0 commit comments