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.51 by root, Sun Oct 24 17:34:47 2010 UTC vs.
Revision 1.52 by root, Sun Oct 24 17:52:50 2010 UTC

225} 225}
226 226
227int 227int
228main (int argc, const char *const *argv) 228main (int argc, const char *const *argv)
229{ 229{
230 ptytty::init ();
231
230 int opt_fork, opt_opendisplay, opt_quiet; 232 int opt_fork, opt_opendisplay, opt_quiet;
231#if ENABLE_MLOCK 233#if ENABLE_MLOCK
232 int opt_lock; 234 int opt_lock;
233#endif 235#endif
234
235 rxvt_init ();
236 236
237 for (int i = 1; i < argc; i++) 237 for (int i = 1; i < argc; i++)
238 { 238 {
239 if (!strcmp (argv [i], "-f") || !strcmp (argv [i], "--fork")) 239 if (!strcmp (argv [i], "-f") || !strcmp (argv [i], "--fork"))
240 opt_fork = 1; 240 opt_fork = 1;
251 rxvt_log ("%s: unknown option '%s', aborting.\n", argv [0], argv [i]); 251 rxvt_log ("%s: unknown option '%s', aborting.\n", argv [0], argv [i]);
252 return EXIT_FAILURE; 252 return EXIT_FAILURE;
253 } 253 }
254 } 254 }
255 255
256 rxvt_init ();
257
256 // optionally open display and never release it. 258 // optionally open display and never release it.
257 if (opt_opendisplay) 259 if (opt_opendisplay)
258 if (const char *dpy = getenv ("DISPLAY")) 260 if (const char *dpy = getenv ("DISPLAY"))
259 displays.get (dpy ? dpy : ":0"); // move string logic into rxvt_display maybe? 261 displays.get (dpy ? dpy : ":0"); // move string logic into rxvt_display maybe?
260 262

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines