diff options
Diffstat (limited to 'src/shared/utmp-wtmp.c')
-rw-r--r-- | src/shared/utmp-wtmp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/shared/utmp-wtmp.c b/src/shared/utmp-wtmp.c index 3a68cf8016..c79764ced0 100644 --- a/src/shared/utmp-wtmp.c +++ b/src/shared/utmp-wtmp.c @@ -313,11 +313,10 @@ static int write_to_terminal(const char *tty, const char *message) { return -ETIME; k = fd_wait_for_event(fd, POLLOUT, end - t); - if (k < 0) { - if (ERRNO_IS_TRANSIENT(k)) - continue; + if (ERRNO_IS_NEG_TRANSIENT(k)) + continue; + if (k < 0) return k; - } if (k == 0) return -ETIME; |