-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set realtime priority #4
base: master
Are you sure you want to change the base?
Conversation
… zero sum PR's... actually it just diffs the end result with the original
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That could be 2 different PR but that's fine :)
systemctl disable $(BIN) | ||
systemctl stop $(BIN) | ||
rm -f /etc/systemd/system/$(BIN).service | ||
rm -f /etc/$(BIN).* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer to list the files here to be on the safe side.
param.sched_priority = 99; | ||
if (sched_setscheduler(0, SCHED_FIFO, & param) != 0) { | ||
syslog (LOG_PID | LOG_DAEMON, "Unable to set realtime priority"); | ||
exit(EXIT_FAILURE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indentation?
also, is it really worth exiting? It can work without that.
@@ -0,0 +1 @@ | |||
hello |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not ship that. That's too dangerous.
No description provided.