aboutsummaryrefslogtreecommitdiff
path: root/slave.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-31 17:52:50 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-31 17:52:50 +0000
commit7e93405b1a987c8d1aef17ba348ce9bb746ffa9a (patch)
treea2fe249b84e3a17911f9498d95e67f2eeaa261f9 /slave.c
parentslave: restore pts file status flags after emitting user-notifications (diff)
slave: user-notifications: skip the O_NONBLOCK dance when there aren't any notifications
Diffstat (limited to 'slave.c')
-rw-r--r--slave.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slave.c b/slave.c
index 72a465a8..29289f3a 100644
--- a/slave.c
+++ b/slave.c
@@ -196,7 +196,7 @@ slave_exec(int ptmx, char *argv[], int err_fd, bool login_shell,
goto err;
}
- {
+ if (tll_length(*notifications) > 0) {
int flags = fcntl(pts, F_GETFL);
if (flags < 0)
goto err;