Renice without affecting inherited child processes?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'd like to set the nice level of a process to 19, but have any future child processes keep the default nice of 0. Basically, I want the child processes to ignore inheritance. But it seems impossible to do in a simple way.
My problem, specifically, is xfce4-menu-plugin. Every 5 minutes or so, it refreshes or something (I really have no idea what it's doing!), disrupting audio playback of other apps. I can't figure out a way to turn this off. Reniceing it to 19 solves the disruption problem, but it means any programs run from the menu are now also at nice level 19. I can't think of a simple way around this, apart from "stop using it". Which at this point seems quite likely!
Well, for anyone having trouble with xfce4-menu-plugin, what I've done is to remove it from the panel, and add a Launcher to the panel with the command xfdesktop -menu, which is essentially the same thing. Why this doesn't give me problems, I'll never know..
I'd still be interested if anyone had an answer to my original question of reniceing.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.