Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
1daidai1 committed Feb 7, 2025
1 parent 38a0907 commit d725adc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Craned/TaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,12 +566,12 @@ CraneErrCode TaskManager::SpawnProcessInInstance_(TaskInstance* instance,
if (pipe(craned_crun_pipe) == -1) {
CRANE_ERROR("[Task #{}] Failed to create pipe for task io forward: {}",
instance->task.task_id(), strerror(errno));
return CraneErr::kSystemErr;
return CraneErrCode::ERR_SYSTEM_ERR;
}
if (pipe(crun_craned_pipe) == -1) {
CRANE_ERROR("[Task #{}] Failed to create pipe for task io forward: {}",
instance->task.task_id(), strerror(errno));
return CraneErr::kSystemErr;
return CraneErrCode::ERR_SYSTEM_ERR;
}
crun_meta->task_input_fd = craned_crun_pipe[1];
crun_meta->task_output_fd = crun_craned_pipe[0];
Expand Down

0 comments on commit d725adc

Please sign in to comment.