1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-10 07:38:06 -05:00
Simon Tatham 10b5c1163c pageant --foreground: close stdout after printing env setup.
This is a small refinement of my own to Marco Ricci's new mode
introduced by the previous commit. If Pageant is being run by a parent
process intending to make requests to it, then it's probably put a
pipe on Pageant's stdout, and will be reading from that pipe to
retrieve the environment setup commands. So it needs to know when it's
read enough.

Closing stdout immediately makes this as easy as possible, freeing the
parent process of the need to count lines of output (and also know how
many lines to expect): it can simply read until there's no more data.

This also means there's no need to make stdout line-buffered, of
course – the fclose will flush it anyway.
2024-09-23 09:33:00 +01:00
..
2024-04-15 19:42:50 +01:00
2022-05-05 19:04:34 +01:00
2023-12-18 14:47:48 +00:00
2023-12-18 14:47:48 +00:00
2024-06-29 12:00:12 +01:00
2023-12-18 14:47:48 +00:00
2023-11-18 09:09:55 +00:00
2024-06-29 12:00:12 +01:00
2024-06-29 12:00:12 +01:00