Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Set realtime priority #4

wants to merge 12 commits into from

Conversation

dagelf
Copy link

@dagelf dagelf commented Sep 10, 2019

No description provided.

Copy link
Owner

@jd jd left a 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).*
Copy link
Owner

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);
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants