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.14 by pcg, Thu Apr 8 20:31:45 2004 UTC vs.
Revision 1.20 by root, Mon Feb 14 20:46:47 2005 UTC

191 catch (const class rxvt_failure_exception &e) 191 catch (const class rxvt_failure_exception &e)
192 { 192 {
193 success = false; 193 success = false;
194 } 194 }
195 195
196 term->log_hook = 0;
197
196 environ = old_environ; 198 environ = old_environ;
199 chdir ("/");
197 200
198 if (!success) 201 if (!success)
199 term->destroy (); 202 term->destroy ();
200 203
201 send ("END"); send (success ? 1 : 0); 204 send ("END"); send (success ? 1 : 0);
209} 212}
210 213
211int 214int
212main (int argc, const char *const *argv) 215main (int argc, const char *const *argv)
213{ 216{
214 rxvt_init_signals (); 217 rxvt_init ();
218
219 chdir ("/");
215 220
216 char *sockname = rxvt_connection::unix_sockname (); 221 char *sockname = rxvt_connection::unix_sockname ();
217 unix_listener l (sockname); 222 unix_listener l (sockname);
218 printf ("rxvtd listening on %s.\n", sockname); 223 printf ("rxvt-unicode daemon listening on %s.\n", sockname);
224 fflush (stdout);
219 free (sockname); 225 free (sockname);
220 226
221 iom.loop (); 227 io_manager::loop ();
222 228
223#if 0
224 if (rxvt_init (argc, argv) == NULL)
225 return EXIT_FAILURE;
226
227 dR;
228 rxvt_main_loop (aR); /* main processing loop */
229#endif
230 return EXIT_SUCCESS; 229 return EXIT_SUCCESS;
231} 230}
232 231

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines