From 7e93405b1a987c8d1aef17ba348ce9bb746ffa9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 31 Jul 2020 19:52:50 +0200 Subject: [PATCH] slave: user-notifications: skip the O_NONBLOCK dance when there aren't any notifications --- slave.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;