aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorreinelt <>2003-08-14 03:47:40 +0000
committerreinelt <>2003-08-14 03:47:40 +0000
commit08f1734a56cce3ab7aa764d4e9ba5da2cb856df3 (patch)
tree033346d6bb263c1d3f6a5d04bb5038e239a871d1 /lcd4linux.c
parent3a86e6f409ad2d6094aacf4b2c0f991d52fc4108 (diff)
downloadlcd4linux-08f1734a56cce3ab7aa764d4e9ba5da2cb856df3.tar.gz
[lcd4linux @ 2003-08-14 03:47:40 by reinelt]
remove PID file if driver initialisation fails
Diffstat (limited to 'lcd4linux.c')
-rw-r--r--lcd4linux.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 6a357f7..ee44cb5 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.41 2003/08/08 08:05:23 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.42 2003/08/14 03:47:40 reinelt Exp $
*
* LCD4Linux
*
@@ -20,6 +20,9 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.42 2003/08/14 03:47:40 reinelt
+ * remove PID file if driver initialisation fails
+ *
* Revision 1.41 2003/08/08 08:05:23 reinelt
* added PID file handling
*
@@ -447,6 +450,7 @@ int main (int argc, char *argv[])
debug ("initializing driver %s", driver);
if (lcd_init(driver)==-1) {
+ pid_exit(PIDFILE);
exit (1);
}