diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-18 11:45:06 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2022-12-18 13:04:53 -0800 |
commit | ab3cfa4a17663cf479f286149a2289974dd67240 (patch) | |
tree | 812cfbb2d3d484c6d2432200342404ad89f7789f /test/lisp/emacs-lisp/cl-lib-tests.el | |
parent | 09b5f00613572dd27f43626aed21f3659d5ced64 (diff) | |
download | emacs-ab3cfa4a17663cf479f286149a2289974dd67240.tar.gz emacs-ab3cfa4a17663cf479f286149a2289974dd67240.tar.bz2 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 'test/lisp/emacs-lisp/cl-lib-tests.el')
0 files changed, 0 insertions, 0 deletions