From 60ba51b33a060dde352caa678f2e337f5f5590f5 Mon Sep 17 00:00:00 2001 From: zecke Date: Fri, 13 Jun 2003 10:41:14 +0000 Subject: fix here as well --- diff --git a/core/opiealarm/opiealarm.c b/core/opiealarm/opiealarm.c index 072dca7..465e633 100644 --- a/core/opiealarm/opiealarm.c +++ b/core/opiealarm/opiealarm.c @@ -92,7 +92,7 @@ int fork_with_pidfile ( void ) else if ( pid < 0 ) { perror ( "forking failed" ); return 0; - } + } // child process needs to react to SIGUSR2. This is sent when // a new opiealarm process is started. @@ -258,6 +258,7 @@ int suspend ( int fix_rtc ) break; // ( 1, TIMEFILE ); fclose ( fp ); + fp = 0; alrt = atoi ( buf ); // get the alarm time @@ -286,6 +287,7 @@ int suspend ( int fix_rtc ) break; // ( 1, "ioctl RTC_AIE_OFF" ); close ( fd ); + fd = -1; remove_pidfile ( ); -- cgit v0.9.0.2