… | |
… | |
482 | rxvt_init () |
482 | rxvt_init () |
483 | { |
483 | { |
484 | assert (("fontMask must not overlap other RS masks", |
484 | assert (("fontMask must not overlap other RS masks", |
485 | 0 == (RS_fontMask & (RS_Sel | RS_baseattrMask | RS_customMask | RS_bgMask | RS_fgMask)))); |
485 | 0 == (RS_fontMask & (RS_Sel | RS_baseattrMask | RS_customMask | RS_bgMask | RS_fgMask)))); |
486 | |
486 | |
|
|
487 | // get rid of stdin/stdout as we don't need them, to free resources |
|
|
488 | dup2 (STDERR_FILENO, STDIN_FILENO); |
|
|
489 | dup2 (STDERR_FILENO, STDOUT_FILENO); |
|
|
490 | |
487 | ptytty::init (); |
491 | ptytty::init (); |
488 | |
492 | |
489 | if (!ev_default_loop (0)) |
493 | if (!ev_default_loop (0)) |
490 | rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n"); |
494 | rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n"); |
491 | |
495 | |