aboutsummaryrefslogtreecommitdiffstats
path: root/src/alloc.c
diff options
context:
space:
mode:
authorPaul Eggert2022-12-18 11:45:06 -0800
committerPaul Eggert2022-12-18 13:04:53 -0800
commitab3cfa4a17663cf479f286149a2289974dd67240 (patch)
tree812cfbb2d3d484c6d2432200342404ad89f7789f /src/alloc.c
parent09b5f00613572dd27f43626aed21f3659d5ced64 (diff)
downloademacs-ab3cfa4a17663cf479f286149a2289974dd67240.tar.gz
emacs-ab3cfa4a17663cf479f286149a2289974dd67240.zip
Don’t hang when copying FIFOs
* src/fileio.c (Fcopy_file): Open the input file with O_NONBLOCK. This prevents a hang if the input file is a FIFO. If it’s a regular file O_NONBLOCK has no effect; otherwise the file is soon rejected anyway.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions