… | |
… | |
209 | } |
209 | } |
210 | catch (const class rxvt_failure_exception &e) |
210 | catch (const class rxvt_failure_exception &e) |
211 | { |
211 | { |
212 | success = false; |
212 | success = false; |
213 | } |
213 | } |
|
|
214 | catch (const std::exception &e) |
|
|
215 | { |
|
|
216 | log_msg (e.what()); |
|
|
217 | success = false; |
|
|
218 | } |
214 | |
219 | |
215 | term->log_hook = 0; |
220 | term->log_hook = 0; |
216 | |
221 | |
217 | chdir ("/"); // init might change to different working directory |
222 | chdir ("/"); // init might change to different working directory |
218 | |
223 | |
… | |
… | |
274 | #endif |
279 | #endif |
275 | |
280 | |
276 | int |
281 | int |
277 | main (int argc, char *argv[]) |
282 | main (int argc, char *argv[]) |
278 | { |
283 | { |
|
|
284 | try |
|
|
285 | { |
279 | ptytty::init (); |
286 | ptytty::init (); |
|
|
287 | } |
|
|
288 | catch (const std::exception &e) |
|
|
289 | { |
|
|
290 | fputs (e.what (), stderr); |
|
|
291 | return EXIT_FAILURE; |
|
|
292 | } |
280 | |
293 | |
281 | static char opt_fork, opt_opendisplay, opt_quiet; |
294 | static char opt_fork, opt_opendisplay, opt_quiet; |
282 | #if ENABLE_PERL |
295 | #if ENABLE_PERL |
283 | static char *opt_eval; |
296 | static char *opt_eval; |
284 | #endif |
297 | #endif |