diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-08-10 08:30:45 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-08-10 08:30:45 +0900 |
| commit | 96fcd5ef671579b5b75e01de99bbe54d8c1e877b (patch) | |
| tree | 28d4d23d4085cd54ee6297e13d680bff894efc72 /crates/shirabe-php-shim/src/process.rs | |
| parent | ad8d455895038165ec33430e4ff3f68bb21ac207 (diff) | |
| download | php-shirabe-96fcd5ef671579b5b75e01de99bbe54d8c1e877b.tar.gz php-shirabe-96fcd5ef671579b5b75e01de99bbe54d8c1e877b.tar.zst php-shirabe-96fcd5ef671579b5b75e01de99bbe54d8c1e877b.zip | |
refactor(symfony-console): drop the unreachable process title surface
Command::setProcessTitle has no caller: neither Composer nor the ported
Symfony Console code sets a process title, so run()'s title branch could
never fire. The shim it called into was unimplementable anyway — PHP
rewrites its own argv block, which Rust hands out only as owned copies.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe-php-shim/src/process.rs')
| -rw-r--r-- | crates/shirabe-php-shim/src/process.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/crates/shirabe-php-shim/src/process.rs b/crates/shirabe-php-shim/src/process.rs index 38ba9928..2b380c60 100644 --- a/crates/shirabe-php-shim/src/process.rs +++ b/crates/shirabe-php-shim/src/process.rs @@ -401,18 +401,6 @@ pub fn getmypid() -> i64 { std::process::id() as i64 } -pub fn cli_set_process_title(_title: &str) -> bool { - // TODO(phase-c): PHP rewrites the argv area so the new title shows up in ps(1)'s full command - // line. Rust hands out argv as owned copies, so the original block is not reachable; prctl's - // PR_SET_NAME only replaces the 16-byte comm field and would report a different title. - todo!() -} - -pub fn setproctitle(_title: &str) { - // TODO(phase-c): see cli_set_process_title; requires access to the process's own argv block. - todo!() -} - // No-op until real signal handling is wired up; signal registration itself is // deferred (see the TODO(plugin) notes in SignalRegistry::register). pub fn pcntl_async_signals(_enable: bool) {} |
