chiark / gitweb /
copy: hide in copy_bytes() the strange way splice() handles O_NONBLOCK
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Mar 2018 16:44:15 +0000 (17:44 +0100)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit68055130494fecb49dd775934661a687cc8f8e58
tree8e99e6411d328715dc96894eaa4900d3c589d17e
parent26e21636556e1950038226e2a5c58dbc46dced30
copy: hide in copy_bytes() the strange way splice() handles O_NONBLOCK

splice() ignores O_NONBLOCK on pipes but not on other fds. Let's handle
that properly, and query O_ONBLOCK manually in that case, ensuring
systematic behaviour in either case.
src/basic/copy.c