warning message when config file = ENOENT
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@136 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
parent
dc9485bba1
commit
7c8eebf836
|
@ -165,6 +165,7 @@ create_config ()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "Warning: can't find or open %s for reading\n", config);
|
||||||
myconfig = &defconfig;
|
myconfig = &defconfig;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1367,7 +1368,6 @@ main (int argc, char** argv)
|
||||||
/* for chroot and program execution */
|
/* for chroot and program execution */
|
||||||
char atrcfilename[81], *spool;
|
char atrcfilename[81], *spool;
|
||||||
unsigned int len;
|
unsigned int len;
|
||||||
struct rlimit rl = { RLIM_INFINITY, RLIM_INFINITY };
|
|
||||||
|
|
||||||
int userchoice = 0;
|
int userchoice = 0;
|
||||||
|
|
||||||
|
@ -1376,9 +1376,6 @@ main (int argc, char** argv)
|
||||||
|
|
||||||
create_config();
|
create_config();
|
||||||
|
|
||||||
/* coredumper */
|
|
||||||
setrlimit (RLIMIT_CORE, &rl);
|
|
||||||
|
|
||||||
/* signal handlers */
|
/* signal handlers */
|
||||||
signal (SIGHUP, catch_sighup);
|
signal (SIGHUP, catch_sighup);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue