Cygwin: pty: Fix crash on master close in Windows 7.
- The 4th parameter of WriteFile() cannot be NULL especially in Windows 7 as mentioned in Microsoft documentation. This patch fixes that. Addresses: https://cygwin.com/pipermail/cygwin/2022-March/251162.html
This commit is contained in:
parent
be9c0561e7
commit
49a00a0673
|
@ -2106,7 +2106,7 @@ fhandler_pty_master::close ()
|
||||||
}
|
}
|
||||||
release_output_mutex ();
|
release_output_mutex ();
|
||||||
get_ttyp ()->stop_fwd_thread = true;
|
get_ttyp ()->stop_fwd_thread = true;
|
||||||
WriteFile (to_master_nat, "", 0, NULL, NULL);
|
WriteFile (to_master_nat, "", 0, &len, NULL);
|
||||||
master_fwd_thread->detach ();
|
master_fwd_thread->detach ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,3 +43,6 @@ Bug Fixes
|
||||||
|
|
||||||
- Fix a formatting problem in gmondump where all displayed addresses are
|
- Fix a formatting problem in gmondump where all displayed addresses are
|
||||||
mistakenly prefixed with "0x0x".
|
mistakenly prefixed with "0x0x".
|
||||||
|
|
||||||
|
- Fix crash on pty master close in Windows 7.
|
||||||
|
Addresses: https://cygwin.com/pipermail/cygwin/2022-March/251162.html
|
||||||
|
|
Loading…
Reference in New Issue