… | |
… | |
1410 | { |
1410 | { |
1411 | #if ENABLE_FRILLS |
1411 | #if ENABLE_FRILLS |
1412 | if (rs[Rs_pty_fd]) |
1412 | if (rs[Rs_pty_fd]) |
1413 | { |
1413 | { |
1414 | pty.pty = atoi (rs[Rs_pty_fd]); |
1414 | pty.pty = atoi (rs[Rs_pty_fd]); |
|
|
1415 | |
|
|
1416 | if (getfd_hook) |
|
|
1417 | pty.pty = (*getfd_hook) (pty.pty); |
|
|
1418 | |
1415 | fcntl (pty.pty, F_SETFL, O_NONBLOCK); |
1419 | if (pty.pty < 0 || fcntl (pty.pty, F_SETFL, O_NONBLOCK)) |
|
|
1420 | rxvt_fatal ("unusable pty-fd filehandle, aborting.\n"); |
1416 | } |
1421 | } |
1417 | else |
1422 | else |
1418 | #endif |
1423 | #endif |
1419 | if (!pty.get ()) |
1424 | if (!pty.get ()) |
1420 | rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); |
1425 | rxvt_fatal ("can't initialize pseudo-tty, aborting.\n"); |