chiark / gitweb /
util: make asynchronous_close() really work like an asynchronous version of safe_close()
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 14:13:43 +0000 (16:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 15:24:21 +0000 (17:24 +0200)
commit5ed1227238724959f020169f5332086439709b55
tree2cdf61c9f05958a0994110c9afa46a9b7da47fd4
parenta9f85faf43ae2289e19ba9105c36496aefe66072
util: make asynchronous_close() really work like an asynchronous version of safe_close()

Save/restore errno, like we do in safe_close(). And don't fork a thread
if the parameter is already negative.
src/shared/async.c