… | |
… | |
40 | #include "init.h" |
40 | #include "init.h" |
41 | |
41 | |
42 | #include <limits> |
42 | #include <limits> |
43 | |
43 | |
44 | #include <csignal> |
44 | #include <csignal> |
|
|
45 | |
|
|
46 | #include <fcntl.h> |
45 | |
47 | |
46 | #ifdef HAVE_XSETLOCALE |
48 | #ifdef HAVE_XSETLOCALE |
47 | # define X_LOCALE |
49 | # define X_LOCALE |
48 | # include <X11/Xlocale.h> |
50 | # include <X11/Xlocale.h> |
49 | #else |
51 | #else |
… | |
… | |
1226 | |
1228 | |
1227 | /* |
1229 | /* |
1228 | * Debugging |
1230 | * Debugging |
1229 | */ |
1231 | */ |
1230 | #ifdef DEBUG_TTYMODE |
1232 | #ifdef DEBUG_TTYMODE |
1231 | #ifdef HAVE_TERMIOS_H |
|
|
1232 | /* c_iflag bits */ |
1233 | /* c_iflag bits */ |
1233 | fprintf (stderr, "Input flags\n"); |
1234 | fprintf (stderr, "Input flags\n"); |
1234 | |
1235 | |
1235 | /* cpp token stringize doesn't work on all machines <sigh> */ |
1236 | /* cpp token stringize doesn't work on all machines <sigh> */ |
1236 | # define FOO(flag,name) \ |
1237 | # define FOO(flag,name) \ |
… | |
… | |
1299 | FOO (VLNEXT, "VLNEXT"); |
1300 | FOO (VLNEXT, "VLNEXT"); |
1300 | # endif |
1301 | # endif |
1301 | |
1302 | |
1302 | fprintf (stderr, "\n"); |
1303 | fprintf (stderr, "\n"); |
1303 | # undef FOO |
1304 | # undef FOO |
1304 | # endif /* HAVE_TERMIOS_H */ |
|
|
1305 | #endif /* DEBUG_TTYMODE */ |
1305 | #endif /* DEBUG_TTYMODE */ |
1306 | } |
1306 | } |
1307 | |
1307 | |
1308 | /*----------------------------------------------------------------------*/ |
1308 | /*----------------------------------------------------------------------*/ |
1309 | /* |
1309 | /* |
… | |
… | |
1413 | rxvt_term::run_child (const char *const *argv) |
1413 | rxvt_term::run_child (const char *const *argv) |
1414 | { |
1414 | { |
1415 | char *login; |
1415 | char *login; |
1416 | |
1416 | |
1417 | if (option (Opt_console)) |
1417 | if (option (Opt_console)) |
|
|
1418 | { |
1418 | { /* be virtual console, fail silently */ |
1419 | /* be virtual console, fail silently */ |
1419 | #ifdef TIOCCONS |
1420 | #ifdef TIOCCONS |
1420 | unsigned int on = 1; |
1421 | unsigned int on = 1; |
1421 | |
1422 | |
1422 | ioctl (STDIN_FILENO, TIOCCONS, &on); |
1423 | ioctl (STDIN_FILENO, TIOCCONS, &on); |
1423 | #elif defined (SRIOCSREDIR) |
1424 | #elif defined (SRIOCSREDIR) |