Message317121
After testing is_valid_fd() (from Python/pylifecycle.c) separately
(an `is_valid_fd.c' file will be attached to ease reproduction) I think
that also NetBSD is affected by bpo-30225.
Using dup(2) (at is currently done in NetBSD):
% cc -o ivf is_valid_fd.c
% sleep 5 && ./ivf > /tmp/log & exit
[... the terminal is closed via ^D ...]
% cat /tmp/log
0: 1
1: 1
2: 1
Using fstat(2):
% cc -DUSE_FSTAT -o ivf is_valid_fd.c
% sleep 5 && ./ivf > /tmp/log & exit
[... the terminal is closed via ^D ...]
% cat /tmp/log
0: 0
1: 1
2: 0
The possible attached patch seems to fix the problem reported by Martin. |
|
Date |
User |
Action |
Args |
2018-05-19 14:45:48 | leot | set | recipients:
+ leot, wiz, xdegaye, MartinHusemann |
2018-05-19 14:45:48 | leot | set | messageid: <1526741148.4.0.682650639539.issue33384@psf.upfronthosting.co.za> |
2018-05-19 14:45:48 | leot | link | issue33384 messages |
2018-05-19 14:45:48 | leot | create | |
|