mirror of
https://github.com/wez/wezterm.git
synced 2024-09-21 11:50:42 +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<()> {
|
fn kill(&mut self) -> IoResult<()> {
|
||||||
#[cfg(unix)]
|
#[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) };
|
unsafe { libc::kill(self.id() as i32, libc::SIGHUP) };
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user