terminal: lxc_terminal_signalfd_cb()

parent 49379222
......@@ -117,7 +117,7 @@ int lxc_terminal_signalfd_cb(int fd, uint32_t events, void *cbdata,
ret = read(fd, &siginfo, sizeof(siginfo));
if (ret < 0 || (size_t)ret < sizeof(siginfo)) {
ERROR("Failed to read signal info");
return -1;
return LXC_MAINLOOP_ERROR;
}
if (siginfo.ssi_signo == SIGTERM) {
......@@ -128,7 +128,7 @@ int lxc_terminal_signalfd_cb(int fd, uint32_t events, void *cbdata,
if (siginfo.ssi_signo == SIGWINCH)
lxc_terminal_winch(ts);
return 0;
return LXC_MAINLOOP_CONTINUE;
}
struct lxc_terminal_state *lxc_terminal_signal_init(int srcfd, int dstfd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment