commit - 818ba3428c675cd065d3d6756c3c0ccb6b43bdf1
commit + 3a16c1a0cf600c6dd35041fbf9ac450d6ff7ce49
blob - 5ad180e72d57ba34465b017c24ab68c2a61fb160
blob + 54d2e265ca70d2394bf01e6e6fba8784a6eb0200
--- modules/battery.c
+++ modules/battery.c
}
pid_t
-start_privileged_battery_process(int *pipe_fd, const struct timespec *timeout)
+start_privileged_battery_process(int *pipe_fd)
{
pid_t pid;
int batt_pipe[2];
while(!should_quit)
{
get_battery(batt_pipe[1]);
- (void)nanosleep(timeout, NULL);
+ (void)sleep(10);
if (getppid() == 1) break;
}