mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
termio/exec: call wait on subprocess when it exits externally
This commit is contained in:
@ -1203,6 +1203,10 @@ const Subprocess = struct {
|
||||
/// Called to notify that we exited externally so we can unset our
|
||||
/// running state.
|
||||
pub fn externalExit(self: *Subprocess) void {
|
||||
if (self.command) |*cmd| {
|
||||
_ = cmd.wait(false) catch |err|
|
||||
log.err("error waiting on subprocess: {}", .{err});
|
||||
}
|
||||
self.command = null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user