I'am launching an external process on a Raspberry PI (debian jessie) with TProcess.
This external process is attempting to set it's own priority via the Linux scheduler to a value of 80.
When I configure it in TProcess.CommandLine without "sudo" (/home/pi/ext_process) the scheduler refuses to increase the PR value; I can execute the external process with PR=20 and terminate it at any time, as it is supposed to be.
On the other side, when I configure the CommandLine with "sudo" (sudo /home/pi/ext_process) the scheduler increases the priority to 80, but then I cannot terminate it any more (TProcess.Terminate).
And this is even the case, when I start the parent process (sudo /home/pi/parent) with root privileges.
Does anyone have an idea how to resolve this?
Thanks in advance