mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
slave: user-notifications: skip the O_NONBLOCK dance when there aren't any notifications
This commit is contained in:
parent
1da8142f32
commit
7e93405b1a
1 changed files with 1 additions and 1 deletions
2
slave.c
2
slave.c
|
|
@ -196,7 +196,7 @@ slave_exec(int ptmx, char *argv[], int err_fd, bool login_shell,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
if (tll_length(*notifications) > 0) {
|
||||||
int flags = fcntl(pts, F_GETFL);
|
int flags = fcntl(pts, F_GETFL);
|
||||||
if (flags < 0)
|
if (flags < 0)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue