]> skyeroc.xyz Git - dgamelaunch/commitdiff
warning message when config file = ENOENT
authorJoshua Kwan <joshk@triplehelix.org>
Wed, 21 Jan 2004 01:49:40 +0000 (01:49 +0000)
committerJoshua Kwan <joshk@triplehelix.org>
Wed, 21 Jan 2004 01:49:40 +0000 (01:49 +0000)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@136 db0b04b0-f4d1-0310-9a6d-de3e77497b0e

dgamelaunch.c

index f056607282ee8d426add4232e0fcfe54fceb1ba2..e1dab337b94bef82dfea01e551565635bfa3311b 100644 (file)
@@ -165,6 +165,7 @@ create_config ()
     }
     else
     {
+      fprintf(stderr, "Warning: can't find or open %s for reading\n", config);
       myconfig = &defconfig;
       return;
     }
@@ -1367,7 +1368,6 @@ main (int argc, char** argv)
   /* for chroot and program execution */
   char atrcfilename[81], *spool;
   unsigned int len;
-  struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
 
   int userchoice = 0;
 
@@ -1376,9 +1376,6 @@ main (int argc, char** argv)
   
   create_config();
 
-  /* coredumper */
-  setrlimit (RLIMIT_CORE, &rl);
-
   /* signal handlers */
   signal (SIGHUP, catch_sighup);