… | |
… | |
41 | # include <sys/mman.h> |
41 | # include <sys/mman.h> |
42 | #endif |
42 | #endif |
43 | |
43 | |
44 | #include <errno.h> |
44 | #include <errno.h> |
45 | |
45 | |
|
|
46 | #include <libptytty.h> |
|
|
47 | |
46 | #include "rxvt.h" |
48 | #include "rxvt.h" |
47 | #include "rxvtdaemon.h" |
49 | #include "rxvtdaemon.h" |
48 | #include "libptytty.h" |
|
|
49 | |
50 | |
50 | struct server : rxvt_connection |
51 | struct server : rxvt_connection |
51 | { |
52 | { |
52 | log_callback log_cb; |
53 | log_callback log_cb; |
53 | getfd_callback getfd_cb; |
54 | getfd_callback getfd_cb; |
… | |
… | |
205 | |
206 | |
206 | try |
207 | try |
207 | { |
208 | { |
208 | term->init (argv, envv); |
209 | term->init (argv, envv); |
209 | } |
210 | } |
210 | catch (const class rxvt_failure_exception &e) |
|
|
211 | { |
|
|
212 | success = false; |
|
|
213 | } |
|
|
214 | catch (const std::exception &e) |
211 | catch (const std::exception &e) |
215 | { |
212 | { |
216 | log_msg (e.what()); |
213 | log_msg (e.what()); |
217 | success = false; |
214 | success = false; |
218 | } |
215 | } |