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 committed Dec 14, 2023
1 parent d9b1437 commit 148b5ca
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 148b5ca

Please sign in to comment.