Skip to content

Commit

Permalink
sched_ calls are not supported on OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
opcm authored and rdementi committed Dec 19, 2023
1 parent 23e41cf commit a49a627
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pcm-sensor-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3397,6 +3397,7 @@ int mainThrows(int argc, char * argv[]) {
}
#endif

#ifndef __APPLE__
if ( useRealtimePriority ) {
int priority = sched_get_priority_min( SCHED_RR );
if ( priority == -1 ) {
Expand All @@ -3414,6 +3415,7 @@ int mainThrows(int argc, char * argv[]) {
}
}
}
#endif

pid_t pid;
if ( daemonMode )
Expand Down

0 comments on commit a49a627

Please sign in to comment.