in reply to question on getting SIGPIPE in close
Windows does not actually have signals. There is no SIGPIPE on Windows, so Perl is emulating it somehow. My guess is that close attempts to flush buffers, which are empty at that point in your program, so flushing them is a no-op on *nix, (only an actual write triggers SIGPIPE — flushing an empty buffer does not count) but Perl emulates SIGPIPE on Windows by asking the OS if the pipe is still connected. It is not, so "SIGPIPE" is raised.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: question on getting SIGPIPE in close
by perl-diddler (Chaplain) on Apr 30, 2020 at 19:50 UTC | |
by jcb (Parson) on May 01, 2020 at 01:30 UTC | |
by perl-diddler (Chaplain) on May 01, 2020 at 02:47 UTC | |
by jcb (Parson) on May 02, 2020 at 03:21 UTC |