… | |
… | |
554 | |
554 | |
555 | // get rid of stdin/stdout as we don't need them, to free resources |
555 | // get rid of stdin/stdout as we don't need them, to free resources |
556 | dup2 (STDERR_FILENO, STDIN_FILENO); |
556 | dup2 (STDERR_FILENO, STDIN_FILENO); |
557 | dup2 (STDERR_FILENO, STDOUT_FILENO); |
557 | dup2 (STDERR_FILENO, STDOUT_FILENO); |
558 | |
558 | |
559 | ptytty::init (); |
|
|
560 | |
|
|
561 | if (!ev_default_loop ()) |
559 | if (!ev_default_loop ()) |
562 | rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n"); |
560 | rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n"); |
563 | |
561 | |
564 | rxvt_environ = environ; |
562 | rxvt_environ = environ; |
565 | |
563 | |