--- rxvt-unicode/src/rxvtd.C 2021/06/17 00:08:35 1.64 +++ rxvt-unicode/src/rxvtd.C 2021/06/26 14:42:36 1.65 @@ -211,6 +211,11 @@ { success = false; } + catch (const std::exception &e) + { + log_msg (e.what()); + success = false; + } term->log_hook = 0; @@ -276,7 +281,15 @@ int main (int argc, char *argv[]) { - ptytty::init (); + try + { + ptytty::init (); + } + catch (const std::exception &e) + { + fputs (e.what (), stderr); + return EXIT_FAILURE; + } static char opt_fork, opt_opendisplay, opt_quiet; #if ENABLE_PERL