After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 126923 - Ending root-owned process from within gnome system monitor hangs app
Ending root-owned process from within gnome system monitor hangs app
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: general
unspecified
Other other
: High critical
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
: 113471 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-11-13 20:29 UTC by Jason Brooks
Modified: 2011-11-11 10:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix this (Also see the additional comments below) (2.15 KB, patch)
2003-11-18 09:18 UTC, Kiran Kumar Immidi
none Details | Review

Description Jason Brooks 2003-11-13 20:29:24 UTC
Distribution: Fedora Core release 1 (Yarrow)
Package: gnome-applets
Severity: normal
Version: GNOME2.4.0 2.4.x
Gnome-Distributor: GNOME.Org
Synopsis: Ending root-owned process from within gnome system monitor hangs app
Bugzilla-Product: gnome-applets
Bugzilla-Component: multiload
Bugzilla-Version: 2.4.x
Description:
Description of Problem:

When running System Monitor as a non-root user, choosing to end a
root-owned process triggers a root password request, after which the app
hangs.

Steps to reproduce the problem:
1. Run gnome-system-monitor as non-root user
2. Choose a root-owned process, hit End Process
3. Enter root password, app hangs

Actual Results:

App hangs, root process does not end.

Expected Results:

Root process ends, gnome-system-monitor continues to run.

How often does this happen?

Every time.

Additional Information:




------- Bug moved to this database by unknown@bugzilla.gnome.org 2003-11-13 15:29 -------

The original reporter (jason_brooks@ziffdavis.com) of this bug does not have an account here.
Reassigning to the exporter, unknown@bugzilla.gnome.org.
Reassigning to the default owner of the component, gnome-applets-maint@bugzilla.gnome.org.

Comment 1 Luis Villa 2003-11-14 16:10:14 UTC
Yeah, I see the same behavior with HEAD compiled on Fedora Core.
Comment 2 Kiran Kumar Immidi 2003-11-18 09:18:43 UTC
Created attachment 21576 [details] [review]
Patch to fix this (Also see the additional comments below)
Comment 3 Kiran Kumar Immidi 2003-11-18 09:20:16 UTC
a) The patch fixes the defect. The slave side of the pseudo terminal
has to be opened, which has to be dup2()ed to '0'.
  There is an issue over here. The getpt() function does not do call
the grantpt() and unlockpt() function in glibc on  Linux, but the
emulations of the getpt() function for BSD and SUN call these
functions. These emulations should leave out the calls to grantpt()
and unlockpt().

b) Another minor change has also been made. When the "End Process"
button is clicked on the warning dialog, the dialog is not destroyed
immediately but after the root password window is processed and the
process is killed.
Comment 4 Kevin Vandersloot 2003-11-22 16:09:54 UTC
Patch applied. Thanks so much for fixing this Kiran!
Comment 5 Kevin Vandersloot 2003-11-22 16:10:51 UTC
*** Bug 113471 has been marked as a duplicate of this bug. ***