* dwmstatus for OpenBSD
       
   URI git clone git://git.codevoid.de/dwmstatus-sdk
   DIR Log
   DIR Files
   DIR Refs
   DIR LICENSE
       ---
   DIR commit cdf268a37a311e5f22b7b2570beb2e3ad5761d03
   DIR parent abbd44de441b7dc0e666dae0c5f162f701d53480
   URI Author: Stefan Hagen <sh+git[at]codevoid[dot]de>
       Date:   Sun,  3 Jun 2018 12:34:33 +0200
       
       Update timing
       
       Diffstat:
         M dwmstatus.c                         |       8 +++++---
       
       1 file changed, 5 insertions(+), 3 deletions(-)
       ---
   DIR diff --git a/dwmstatus.c b/dwmstatus.c
       @@ -30,7 +30,7 @@
        
        
        // configuration
       -#define UPDATE_INTERVAL 1
       +#define UPDATE_INTERVAL 10
        
        // conversation presets
        #define ZEROCTOC(x) ((x)-2731) / 10
       @@ -304,6 +304,7 @@ void
        sig_handler(int signo) {
            if (signo == SIGUSR1)
                update();
       +        usleep(50000);
        }
        
        int
       @@ -316,8 +317,10 @@ main(void)
            }
        
            // register signal handler
       -    if (signal(SIGUSR1, sig_handler) == SIG_ERR)
       +    if (signal(SIGUSR1, sig_handler) == SIG_ERR) {
                fprintf(stderr, "Err: can't register update signal (SIGUSR1)\n");
       +        return 1;
       +    }
        
            // update status
            for (;;sleep(UPDATE_INTERVAL)) {
       @@ -328,4 +331,3 @@ main(void)
        
            return 0;
        }
       -