-
Notifications
You must be signed in to change notification settings - Fork 13
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
Record pid of Orocos.run in filesystem #36
Comments
The problem is to be sure that you keep it up to date ... which is pretty hard. Tasks can already report their TID. We could make them report their PIDs as well, which would account for the rock-killall thing (list all tasks on name service, kill them, if the task is owned by somebody else you can't kill it) |
Why not creating a directory in /tmp with links to /proc, if a process On 15.01.2015 20:52, Sylvain Joyeux wrote:
Dipl.-Inf. Matthias Goldhoorn Universität Bremen Zentrale: +49 421 178 45-6611 Besuchsadresse der Nebengeschäftstelle: Tel.: +49 421 178 45-4193 Weitere Informationen: http://www.informatik.uni-bremen.de/robotik |
It might be reused. You would have to make sure that the PID is not the PID of a new process (as opposed to the one you want to kill) before killing it. Resolving using the CORBA interface would provide this.
True, and it can get messy when it happens. This is why init systems try very hard to cleanup afterwards (and why the systemd guys prefer handling the PID handling internally instead of letting the init scripts do it). |
I think it would be nice to record the pid of the processes that are spawned by orocos.rb in a file in /tmp, so that we could have a rock-killall to remove leftover processess from failed scripts. Also, this would provide a way to see which tasks belong to rock, and distinguish between different types of task ownerships.
The text was updated successfully, but these errors were encountered: