Now doing it right. - rfkilld - An rfkill daemon, which runs scripts according to rfkill events.
       
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 0c6b4c7a43f3ecec86d7d43f2cb81f3ebe5f5dec
 (DIR) parent c30fef8943935881c32d75e6023746e0078b7ed5
 (HTM) Author: Christoph Lohmann <20h@r-36.net>
       Date:   Mon, 28 Feb 2011 20:42:39 +0100
       
       Now doing it right.
       
       Diffstat:
         rfkilld.c                           |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/rfkilld.c b/rfkilld.c
       @@ -78,7 +78,8 @@ sighandler(int sig)
                case SIGQUIT:
                case SIGABRT:
                case SIGTERM:
       -                closelog();
       +                if (dolog)
       +                        closelog();
                        running = 0;
                        break;
                default:
       @@ -165,7 +166,8 @@ main(int argc, char *argv[])
                        }
                }
        
       -        closelog();
       +        if (dolog)
       +                closelog();
                exit(EXIT_SUCCESS);
        }