slave: user-notifications: skip the O_NONBLOCK dance when there aren't any notifications

This commit is contained in:
Daniel Eklöf 2020-07-31 19:52:50 +02:00
parent 1da8142f32
commit 7e93405b1a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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;