projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6d2a26a
)
run: do not log "Error on PTY forwarding logic" when disconnected due to user operation
author
Mike Yuan
<me@yhndnzj.com>
Sun, 19 May 2024 00:53:07 +0000
(08:53 +0800)
committer
Mike Yuan
<me@yhndnzj.com>
Sun, 19 May 2024 01:18:48 +0000
(09:18 +0800)
src/run/run.c
patch
|
blob
|
history
diff --git
a/src/run/run.c
b/src/run/run.c
index dc4486490b0cdeaa3ff26651c6b32c1f327ca4b9..dfb0c84144e4766054251bdba81ad491c3b426fc 100644
(file)
--- a/
src/run/run.c
+++ b/
src/run/run.c
@@
-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");
}