mirror of
https://github.com/systemd/systemd.git
synced 2025-02-06 01:57:47 +03:00
console: fix error-code inversion
The error-code propagated via sysview is always negative. Avoid multiplying by -1 before returning it. Otherwise, we will return >0 instead of <0, which will not be detected as error by sysview-core.
This commit is contained in:
parent
f4cf2e5b2f
commit
84c3561c58
@ -225,7 +225,7 @@ static int manager_sysview_session_control(Manager *m, sysview_event *event) {
|
||||
sysview_session_get_name(session));
|
||||
session_free(s);
|
||||
sysview_session_set_userdata(session, NULL);
|
||||
return -error;
|
||||
return error;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user