| Summary: | detect when processes need to be restarted | ||
|---|---|---|---|
| Product: | PackageKit | Reporter: | Paul Wise <pabs3> |
| Component: | General | Assignee: | Richard Hughes <richard> |
| Status: | RESOLVED NOTABUG | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | medium | CC: | candrews |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
|
Description
Paul Wise
2008-12-21 20:18:59 UTC
It already detect processes in use, and asks the user to restart the session (logout) -- I guess detecting shared libraries that are being used could be added too. Do you know how to detect this in C? Not sure about in C, but in shell it would be: lsof | egrep '(DEL|\(path inode=[0-9]+\)$| \(deleted\)$)' And then remove files from the resulting list that were not installed by one of the packages on the system. Then ask the user to restart the processes with those files open. There is a python implementation here: http://arcdraco.net/~dragon/checkrestart Unfortunately for stuff written in scripting/vm languages like python/perl/etc you might need to do something else. Do you also detect when the kernel has been upgraded and a reboot is needed? We moved the upstream bugtracker to GitHub a long time ago. If this issue still affects you please re-create the issue here: https://github.com/hughsie/PackageKit/issues Sorry for the impersonal message, and fingers crossed your issue no longer happens. Thanks. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.