… | |
… | |
194 | } |
194 | } |
195 | |
195 | |
196 | term->log_hook = 0; |
196 | term->log_hook = 0; |
197 | |
197 | |
198 | environ = old_environ; |
198 | environ = old_environ; |
|
|
199 | chdir ("/"); |
199 | |
200 | |
200 | if (!success) |
201 | if (!success) |
201 | term->destroy (); |
202 | term->destroy (); |
202 | |
203 | |
203 | send ("END"); send (success ? 1 : 0); |
204 | send ("END"); send (success ? 1 : 0); |
… | |
… | |
213 | int |
214 | int |
214 | main (int argc, const char *const *argv) |
215 | main (int argc, const char *const *argv) |
215 | { |
216 | { |
216 | rxvt_init (); |
217 | rxvt_init (); |
217 | |
218 | |
|
|
219 | chdir ("/"); |
|
|
220 | |
218 | char *sockname = rxvt_connection::unix_sockname (); |
221 | char *sockname = rxvt_connection::unix_sockname (); |
219 | unix_listener l (sockname); |
222 | unix_listener l (sockname); |
220 | printf ("rxvt-unicode daemon listening on %s.\n", sockname); |
223 | printf ("rxvt-unicode daemon listening on %s.\n", sockname); |
|
|
224 | fflush (stdout); |
221 | free (sockname); |
225 | free (sockname); |
222 | |
226 | |
223 | iom.loop (); |
227 | io_manager::loop (); |
224 | |
228 | |
225 | return EXIT_SUCCESS; |
229 | return EXIT_SUCCESS; |
226 | } |
230 | } |
227 | |
231 | |