| 130 | } |
| 131 | |
| 132 | static void setProcessScheduler(void) |
| 133 | { |
| 134 | struct sched_param param; |
| 135 | |
| 136 | param.sched_priority = sched_get_priority_max(SCHED_FIFO); |
| 137 | if (sched_setscheduler(0, SCHED_FIFO, ¶m) < 0) |
| 138 | fprintf(stderr, "sched_setscheduler() failed: (%d) %s\n", |
| 139 | errno, strerror(errno)); |
| 140 | } |
| 141 | |
| 142 | static uint64_t encodeUserData(char type, int fd) |
| 143 | { |