summaryrefslogtreecommitdiffstats
path: root/src/shared/async.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* shutdown: teach sync_with_progress() to optionally sync a specific fd onlyLennart Poettering2024-09-091-0/+22
| | | | | This is preparation for reusing the logic for syncing DM and other devices with a timeout applied.
* shared/async: use safe_close where appropriateMike Yuan2023-12-281-1/+1
|
* tree-wide: fix typos reported by Fossies Codespell reportYu Watanabe2023-07-121-1/+1
|
* shared/async: don't use WEXITED for waitpid()Mike Yuan2023-07-111-3/+2
| | | | | | | | | | Follow-up for c26d7837bb08508c8d906d849dff8f1bc465063e waitpid() doesn't support WEXITED and returns -1 (EINVAL), which results in the intermediate close process not getting reaped. Fixes https://github.com/systemd/systemd/issues/26744#issuecomment-1628240782
* shared/async: prefix process name with sd-Mike Yuan2023-07-111-1/+1
|
* async: use FORK_DETACH for asynchronous syncsLennart Poettering2023-06-231-1/+1
| | | | | To get proper "fire-and-forget" feeling we really want to make sure noone has to reap the forked off process.
* async: drop the now unused asynchronous_job()Lennart Poettering2023-06-231-47/+0
|
* async: add generic implementation of asynchronous_rm_rf()Lennart Poettering2023-06-231-0/+25
| | | | | | | This one doesn't use threads anymore. This is the last use of threads in PID 1. Yay! Fixes: #27287
* shared: move async.[ch] from src/basic/ → src/shared/Lennart Poettering2023-06-231-0/+160
| | | | | That way we can later add an async wrapper for rm_rf() which is in src/shared/, too.
* build-sys: split internal basic/ library from shared/Kay Sievers2015-06-111-92/+0
| | | | | | | | | | basic/ can be used by everything cannot use anything outside of basic/ libsystemd/ can use basic/ cannot use shared/ shared/ can use libsystemd/
* shared/async: simplify asynchronous_job a bitZbigniew Jędrzejewski-Szmek2015-02-031-9/+3
|
* util: make asynchronous_close() really work like an asynchronous version of ↵Lennart Poettering2014-08-211-4/+8
| | | | | | | safe_close() Save/restore errno, like we do in safe_close(). And don't fork a thread if the parameter is already negative.
* build-sys: move async.[ch] to src/sharedLennart Poettering2014-05-051-0/+94
So that we can use it at multiple places.