mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
drop ascii art
This commit is contained in:
@@ -7,9 +7,6 @@ use std::fs::OpenOptions;
|
||||
use tokio::process::Child;
|
||||
use tokio::process::Command;
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Internal helpers
|
||||
|
||||
/// Open (and create if necessary) the log files that stdout / stderr of the
|
||||
/// spawned agent will be redirected to.
|
||||
fn open_log_files(paths: &Paths) -> Result<(std::fs::File, std::fs::File)> {
|
||||
@@ -39,9 +36,6 @@ fn base_command(bin: &str, paths: &Paths) -> Result<Command> {
|
||||
Ok(cmd)
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// exec -- non-interactive batch agent
|
||||
|
||||
pub fn spawn_exec(paths: &Paths, exec_args: &[String]) -> Result<Child> {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
@@ -86,9 +80,6 @@ pub fn spawn_exec(paths: &Paths, exec_args: &[String]) -> Result<Child> {
|
||||
}
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// repl -- interactive FIFO stdin
|
||||
|
||||
pub fn spawn_repl(paths: &Paths, repl_args: &[String]) -> Result<Child> {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
|
||||
@@ -223,9 +223,7 @@ pub async fn kill_session(id: &str) -> Result<()> {
|
||||
);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Step 1 -- send graceful termination.
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
#[cfg(unix)]
|
||||
{
|
||||
@@ -259,9 +257,7 @@ pub async fn kill_session(id: &str) -> Result<()> {
|
||||
tokio::time::sleep(poll_interval).await;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
// Step 2 -- force kill if necessary.
|
||||
//---------------------------------------------------------------------
|
||||
|
||||
if still_running {
|
||||
#[cfg(unix)]
|
||||
|
||||
Reference in New Issue
Block a user