Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ static int event_handler(struct event *ev)
} else if (ev->dev->is_virtual && ev->devev->type == DEV_LED) {
size_t i;

/*
/*
* Propagate LED events received by the virtual device from userspace
* to all grabbed devices.
*
Expand Down Expand Up @@ -621,7 +621,7 @@ int run_daemon(int argc, char *argv[])

setvbuf(stdout, NULL, _IOLBF, 0);
setvbuf(stderr, NULL, _IOLBF, 0);

#ifdef __USE_GNU
if (sched_getparam(0, &sp)) {
perror("sched_getparam");
exit(-1);
Expand All @@ -632,6 +632,7 @@ int run_daemon(int argc, char *argv[])
perror("sched_setscheduler");
exit(-1);
}
#endif

if (mlockall(MCL_CURRENT | MCL_FUTURE)) {
perror("mlockall");
Expand Down