From 7c8eebf83646d75072d304d241bf8ba619f11cf2 Mon Sep 17 00:00:00 2001 From: Joshua Kwan Date: Wed, 21 Jan 2004 01:49:40 +0000 Subject: [PATCH] warning message when config file = ENOENT git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@136 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- dgamelaunch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dgamelaunch.c b/dgamelaunch.c index f056607..e1dab33 100644 --- a/dgamelaunch.c +++ b/dgamelaunch.c @@ -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);