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) {