Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | shutdown: teach sync_with_progress() to optionally sync a specific fd only | Lennart Poettering | 2024-09-09 | 1 | -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 appropriate | Mike Yuan | 2023-12-28 | 1 | -1/+1 |
| | |||||
* | tree-wide: fix typos reported by Fossies Codespell report | Yu Watanabe | 2023-07-12 | 1 | -1/+1 |
| | |||||
* | shared/async: don't use WEXITED for waitpid() | Mike Yuan | 2023-07-11 | 1 | -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 Yuan | 2023-07-11 | 1 | -1/+1 |
| | |||||
* | async: use FORK_DETACH for asynchronous syncs | Lennart Poettering | 2023-06-23 | 1 | -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 Poettering | 2023-06-23 | 1 | -47/+0 |
| | |||||
* | async: add generic implementation of asynchronous_rm_rf() | Lennart Poettering | 2023-06-23 | 1 | -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 Poettering | 2023-06-23 | 1 | -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 Sievers | 2015-06-11 | 1 | -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 bit | Zbigniew Jędrzejewski-Szmek | 2015-02-03 | 1 | -9/+3 |
| | |||||
* | util: make asynchronous_close() really work like an asynchronous version of ↵ | Lennart Poettering | 2014-08-21 | 1 | -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/shared | Lennart Poettering | 2014-05-05 | 1 | -0/+94 |
So that we can use it at multiple places. |