]> Dogcows Code - chaz/tint2/blobdiff - src/battery/battery.c
*add* drag'n'drop task reordering
[chaz/tint2] / src / battery / battery.c
index d10c10163a491f62562ac03ede1255afda805dcf..fd2ffce4bf59d74e6de728bad2e64bd638dcce59 100644 (file)
@@ -282,9 +282,8 @@ void update_battery() {
                new_percentage = (energy_now*100)/energy_full;
 
        if(battery_low_status > new_percentage && battery_state.state == BATTERY_DISCHARGING && !battery_low_cmd_send) {
-               if (battery_low_cmd)
-                       if (-1 != system(battery_low_cmd))
-                               battery_low_cmd_send = 1;
+                       system(battery_low_cmd);  // return value == -1, since we've set SIGCHLD to SIGIGN
+                       battery_low_cmd_send = 1;
        }
        if(battery_low_status < new_percentage && battery_state.state == BATTERY_CHARGING && battery_low_cmd_send) {
                battery_low_cmd_send = 0;
This page took 0.023682 seconds and 4 git commands to generate.