diff options
| -rw-r--r-- | slave.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -202,10 +202,12 @@ slave_exec(int ptmx, char *argv[], int err_fd, bool login_shell, goto err; if (fcntl(pts, F_SETFL, flags | O_NONBLOCK) < 0) goto err; - } - if (!emit_notifications(pts, notifications)) - goto err; + if (!emit_notifications(pts, notifications)) + goto err; + + fcntl(pts, F_SETFL, flags); + } close(pts); pts = -1; |
