tell the suer when ev loop init fails
authorroot <root>
Sun, 11 Nov 2007 17:10:45 +0000 (17:10 +0000)
committerroot <root>
Sun, 11 Nov 2007 17:10:45 +0000 (17:10 +0000)
src/main.C

index 3433b80111ec114a2a9b7935be3842373c051984..8919eb2ac51d37d8aaa5ce671b8bb0876eed4f16 100644 (file)
@@ -617,7 +617,9 @@ void
 rxvt_init ()
 {
   ptytty::init ();
-  ev::ev_default_loop (0);
+
+  if (!ev::ev_default_loop (0))
+    rxvt_fatal ("cannot initialise libev (bad value for LIBEV_METHODS?)\n");
 
   rxvt_environ = environ;