diff options
author | Franck Bui <fbui@suse.com> | 2019-06-21 15:34:01 +0200 |
---|---|---|
committer | Franck Bui <fbui@suse.com> | 2019-06-27 19:01:32 +0200 |
commit | aaeb25224d744021ee95cad9abf4a1facfccb458 (patch) | |
tree | 1780f939f3ff9e6ec0f3c4eb537eb40f21b4a9c5 | |
parent | 30a0554ebdacdf32fbfe88449ea07a0a39ca40c5 (diff) | |
download | systemd-aaeb25224d744021ee95cad9abf4a1facfccb458.tar.gz systemd-aaeb25224d744021ee95cad9abf4a1facfccb458.tar.bz2 systemd-aaeb25224d744021ee95cad9abf4a1facfccb458.zip |
coredump: gather_pid_metadata() doesn't return 1 anymore
Since commit 92e92d71faea0f107312f296b7756cc04281ba99, gather_pid_metadata()
returns only 0 or a negative value.
-rw-r--r-- | src/coredump/coredump.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/coredump/coredump.c b/src/coredump/coredump.c index 4cd08724fd..add43e7b6f 100644 --- a/src/coredump/coredump.c +++ b/src/coredump/coredump.c @@ -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 (;;) { |