]> git.ipfire.org Git - thirdparty/systemd.git/commit
async: stop using threads for asynchronous_close()
authorLennart Poettering <lennart@poettering.net>
Thu, 22 Jun 2023 08:28:13 +0000 (10:28 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Jun 2023 08:00:30 +0000 (10:00 +0200)
commitc26d7837bb08508c8d906d849dff8f1bc465063e
treea330debf96ce4e22ce21c6729b05ef1cb607cad4
parent29c3520f28773eb978c47f1c0e76ae6f7da8a04b
async: stop using threads for asynchronous_close()

Let's work towards PID1 being purely single threaded again. Let's rework
asynchronous_close() on top of clone() with CLONE_FILES (so that we
can manipulate PID1's fd table correctly).

One less use of pthread_create() in PID 1.
src/basic/async.c
src/test/test-async.c