ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtd.C
(Generate patch)

Comparing rxvt-unicode/src/rxvtd.C (file contents):
Revision 1.63 by sf-exg, Sun May 9 05:53:12 2021 UTC vs.
Revision 1.66 by sf-exg, Sat Jun 26 14:44:30 2021 UTC

45 45
46#include "rxvt.h" 46#include "rxvt.h"
47#include "rxvtdaemon.h" 47#include "rxvtdaemon.h"
48#include "libptytty.h" 48#include "libptytty.h"
49 49
50struct server : rxvt_connection { 50struct server : rxvt_connection
51{
51 log_callback log_cb; 52 log_callback log_cb;
52 getfd_callback getfd_cb; 53 getfd_callback getfd_cb;
53 54
54 void read_cb (ev::io &w, int revents); ev::io read_ev; 55 void read_cb (ev::io &w, int revents); ev::io read_ev;
55 void log_msg (const char *msg); 56 void log_msg (const char *msg);
68 } 69 }
69 70
70 void err (const char *format = 0, ...); 71 void err (const char *format = 0, ...);
71}; 72};
72 73
73struct unix_listener { 74struct unix_listener
75{
74 int fd; 76 int fd;
75 77
76 void accept_cb (ev::io &w, int revents); ev::io accept_ev; 78 void accept_cb (ev::io &w, int revents); ev::io accept_ev;
77 79
78 unix_listener (int fd); 80 unix_listener (int fd);
203 205
204 try 206 try
205 { 207 {
206 term->init (argv, envv); 208 term->init (argv, envv);
207 } 209 }
208 catch (const class rxvt_failure_exception &e) 210 catch (const std::exception &e)
209 { 211 {
212 log_msg (e.what());
210 success = false; 213 success = false;
211 } 214 }
212 215
213 term->log_hook = 0; 216 term->log_hook = 0;
214 217
272#endif 275#endif
273 276
274int 277int
275main (int argc, char *argv[]) 278main (int argc, char *argv[])
276{ 279{
280 try
281 {
277 ptytty::init (); 282 ptytty::init ();
283 }
284 catch (const std::exception &e)
285 {
286 fputs (e.what (), stderr);
287 return EXIT_FAILURE;
288 }
278 289
279 static char opt_fork, opt_opendisplay, opt_quiet; 290 static char opt_fork, opt_opendisplay, opt_quiet;
280#if ENABLE_PERL 291#if ENABLE_PERL
281 static char *opt_eval; 292 static char *opt_eval;
282#endif 293#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines