1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-11 09:18:07 +03:00

coredump: gather_pid_metadata() doesn't return 1 anymore

Since commit 92e92d71fa, gather_pid_metadata()
returns only 0 or a negative value.
This commit is contained in:
Franck Bui 2019-06-21 15:34:01 +02:00
parent 30a0554ebd
commit aaeb25224d

View File

@ -1276,11 +1276,7 @@ static int process_backtrace(int argc, char *argv[]) {
r = gather_pid_metadata(context, iovec, &n_to_free);
if (r < 0)
goto finish;
if (r > 0) {
/* This was a special crash, and has already been processed. */
r = 0;
goto finish;
}
n_iovec = n_to_free;
for (;;) {