diff options
author | reinelt <> | 2003-08-14 03:47:40 +0000 |
---|---|---|
committer | reinelt <> | 2003-08-14 03:47:40 +0000 |
commit | 08f1734a56cce3ab7aa764d4e9ba5da2cb856df3 (patch) | |
tree | 033346d6bb263c1d3f6a5d04bb5038e239a871d1 /cfg.c | |
parent | 3a86e6f409ad2d6094aacf4b2c0f991d52fc4108 (diff) | |
download | lcd4linux-08f1734a56cce3ab7aa764d4e9ba5da2cb856df3.tar.gz |
[lcd4linux @ 2003-08-14 03:47:40 by reinelt]
remove PID file if driver initialisation fails
Diffstat (limited to 'cfg.c')
-rw-r--r-- | cfg.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: cfg.c,v 1.13 2003/02/22 07:53:10 reinelt Exp $ +/* $Id: cfg.c,v 1.14 2003/08/14 03:47:40 reinelt Exp $ * * config file stuff * @@ -20,6 +20,9 @@ * * * $Log: cfg.c,v $ + * Revision 1.14 2003/08/14 03:47:40 reinelt + * remove PID file if driver initialisation fails + * * Revision 1.13 2003/02/22 07:53:10 reinelt * cfg_get(key,defval) * @@ -273,13 +276,13 @@ int cfg_read (char *file) if (check_cfg_file(file) == -1) { error("config file '%s' is insecure, aborting", file); - exit(2); + return -1; } stream=fopen (file, "r"); if (stream==NULL) { error ("open(%s) failed: %s", file, strerror(errno)); - return-1; + return -1; } if (Config_File) free (Config_File); |