| 188cbdcf |
23-Jan-2021 |
tsutsui <tsutsui@NetBSD.org> |
Fix "no output of xdpyinfo(1) on redirect or pipe" problem. XF86cleanup() in libXxf86dga invoked via atexit(3) (or __attribute__((__destructor__)) in NetBSD xsrc) calls _exit(2) directly so fflush(3) via normal exit(3) is not called. Analyzed by rin@, ryo@, and soda@: https://mail-index.netbsd.org/tech-x11/2021/01/20/msg002192.html Should be pulled up to netbsd-9. XXX1: The original XF86cleanup() is not async-signale-safe. XXX2: XF86DGAGetVideo() implicitly overrides signal handlers. |