diff --git a/fhem/contrib/PRESENCE/presenced b/fhem/contrib/PRESENCE/presenced index e0672f3fa..33e5321f0 100755 --- a/fhem/contrib/PRESENCE/presenced +++ b/fhem/contrib/PRESENCE/presenced @@ -118,7 +118,7 @@ if($opt_h) } -open(PIDFILE, ">$opt_P"); +open(PIDFILE, ">$opt_P") or die("Could not open PID file $opt_P: $!"); print PIDFILE $$."\n"; close PIDFILE; @@ -380,7 +380,7 @@ local $SIG{HUP} = sub {$nextrun = gettimeofday();}; } } - + sleep 0.1; } } }