From 66eae683686345e06c04bde0e767e2caf4e63122 Mon Sep 17 00:00:00 2001 From: Christopher Sardegna Date: Sat, 11 Jul 2026 23:45:19 -0700 Subject: [PATCH] refactor: remove `shed_writer` method and its calls from Supervisor --- src/supervisor.rs | 2 -- src/task.rs | 6 ------ 2 files changed, 8 deletions(-) diff --git a/src/supervisor.rs b/src/supervisor.rs index 6b5449b..2019e2c 100644 --- a/src/supervisor.rs +++ b/src/supervisor.rs @@ -147,7 +147,6 @@ impl Supervisor { if let Some(i) = self.index_of(id) { let mut t = self.tasks.remove(i); t.terminate(); - t.shed_writer(); self.graveyard.push(t); } } @@ -382,7 +381,6 @@ impl Supervisor { // would straight-SIGKILL stragglers of the old run. let mut old = std::mem::replace(&mut self.tasks[i], fresh); old.terminate(); - old.shed_writer(); self.graveyard.push(old); // Reset the fingerprint for the replacement task's screen. if self.watched == Some(id) { diff --git a/src/task.rs b/src/task.rs index 6e2afe3..998ce1c 100644 --- a/src/task.rs +++ b/src/task.rs @@ -389,12 +389,6 @@ impl Task { self.reaped } - /// Release the PTY writer after removal while retaining the master for - /// process-group teardown. - pub fn shed_writer(&mut self) { - self.writer = Box::new(io::sink()); - } - pub fn lifecycle(&self, now: Instant, idle_after: Duration) -> Lifecycle { if self.finished.is_some() { return if self.exit_code == Some(0) {