mirror of
https://github.com/wez/wezterm.git
synced 2024-11-11 03:27:05 +03:00
Add comment
This commit is contained in:
parent
18e8d48171
commit
dc9784e0db
@ -190,6 +190,11 @@ impl Child for std::process::Child {
|
||||
fn kill(&mut self) -> IoResult<()> {
|
||||
#[cfg(unix)]
|
||||
{
|
||||
// On unix, we send the SIGHUP signal instead of trying to kill
|
||||
// the process. The default behavior of a process receiving this
|
||||
// signal is to be killed unless it configured a signal handler.
|
||||
// In this case the process is responsible of itself, releasing
|
||||
// resources and terminating itself, or become a daemon.
|
||||
unsafe { libc::kill(self.id() as i32, libc::SIGHUP) };
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user