Skip to content

Commit

Permalink
terminal: s/read()/lxc_read_nointr()/g
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Jul 29, 2018
1 parent 802e609 commit 72f7c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/terminal.c
Expand Up @@ -115,7 +115,7 @@ int lxc_terminal_signalfd_cb(int fd, uint32_t events, void *cbdata,
struct signalfd_siginfo siginfo;
struct lxc_terminal_state *ts = cbdata;

ret = read(fd, &siginfo, sizeof(siginfo));
ret = lxc_read_nointr(fd, &siginfo, sizeof(siginfo));
if (ret < 0 || (size_t)ret < sizeof(siginfo)) {
ERROR("Failed to read signal info");
return LXC_MAINLOOP_ERROR;
Expand Down

0 comments on commit 72f7c19

Please sign in to comment.