mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
run: do not log "Error on PTY forwarding logic" when disconnected due to user operation
This commit is contained in:
@@ -1496,11 +1496,13 @@ static int on_properties_changed(sd_bus_message *m, void *userdata, sd_bus_error
|
||||
}
|
||||
|
||||
static int pty_forward_handler(PTYForward *f, int rcode, void *userdata) {
|
||||
RunContext *c = userdata;
|
||||
RunContext *c = ASSERT_PTR(userdata);
|
||||
|
||||
assert(f);
|
||||
|
||||
if (rcode < 0) {
|
||||
if (rcode == -ECANCELED)
|
||||
log_debug_errno(rcode, "PTY forwarder disconnected.");
|
||||
else if (rcode < 0) {
|
||||
sd_event_exit(c->event, EXIT_FAILURE);
|
||||
return log_error_errno(rcode, "Error on PTY forwarding logic: %m");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user