diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-11-03 15:56:09 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-11-03 16:36:09 +0100 |
commit | 8f03de5323c86f2e7ce0884e169e2c7180938fbd (patch) | |
tree | 83fcdd15e58c113537ce59d1d505030ca9475e6f /src/import/pull-tar.c | |
parent | 883946f0d2a8d8086749636b729719c22c0c0dba (diff) | |
download | systemd-8f03de5323c86f2e7ce0884e169e2c7180938fbd.tar.gz |
tree-wide: port various places to use TAKE_PID()
Diffstat (limited to 'src/import/pull-tar.c')
-rw-r--r-- | src/import/pull-tar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/import/pull-tar.c b/src/import/pull-tar.c index 06d336bca9..bce49cf4e5 100644 --- a/src/import/pull-tar.c +++ b/src/import/pull-tar.c @@ -369,8 +369,7 @@ static void tar_pull_job_on_finished(PullJob *j) { pull_job_close_disk_fd(i->settings_job); if (i->tar_pid > 0) { - r = wait_for_terminate_and_check("tar", i->tar_pid, WAIT_LOG); - i->tar_pid = 0; + r = wait_for_terminate_and_check("tar", TAKE_PID(i->tar_pid), WAIT_LOG); if (r < 0) goto finish; if (r != EXIT_SUCCESS) { |