Bug 489762

Summary: Gtk+ "lpr" printing backend freezes the sub process
Product: Red Hat Enterprise Linux 5 Reporter: guilhem.bonnefille
Component: gtk2Assignee: Benjamin Otte <otte>
Status: CLOSED WONTFIX QA Contact: desktop-bugs <desktop-bugs>
Severity: high Docs Contact:
Priority: low    
Version: 5.3CC: guilhem.bonnefille
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-02 13:23:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch to close the io channel on unref at the end of printing none

Description guilhem.bonnefille 2009-03-11 18:21:25 UTC
Description of problem:
I want to use kprinter as backend pour Gtk printing. But, when printing, kprinter stays freezed, until I kill its parent. The print process finish successfully when the parent process is killed.
This seems to be a not closed pipe in the parent.

The reason for kprinter is because I need to use kerberos with CUPS, but gtk CUPS backend does not support kerberos.

Version-Release number of selected component (if applicable):
gtk2-2.10.4-16.el5

How reproducible:
Always

Steps to Reproduce:
1. Configure ~/gtkrc-2.0 to enable lpr backend
2. start gtk-demo and launch a print test
3. once kprinter is opened, validate print in kprinter
4. kprinter freezed
5. kill gtk-demo
  
Actual results:
kprinter freezes until gtk-demo is killed. 

Expected results:
kprinter print the job, terminates, and parent process is still available for further job.

Additional info:

Comment 1 guilhem.bonnefille 2009-03-12 15:21:21 UTC
Seems to be related to the already solved #390159 on Gnome's bugzilla.

Comment 2 guilhem.bonnefille 2009-03-12 16:17:05 UTC
Created attachment 334958 [details]
Patch to close the io channel on unref at the end of printing

The following patch (based on the upstream commit) solves my problem.

Comment 5 RHEL Program Management 2014-03-07 12:18:21 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in the  last planned RHEL5 minor release. This Bugzilla will soon be CLOSED as WONTFIX. To request that Red Hat re-consider this request, please re-open the bugzilla via  appropriate support channels and provide additional business and/or technical details about its importance to you.

Comment 6 RHEL Program Management 2014-06-02 13:23:12 UTC
Thank you for submitting this request for inclusion in Red Hat Enterprise Linux 5. We've carefully evaluated the request, but are unable to include it in RHEL5 stream. If the issue is critical for your business, please provide additional business justification through the appropriate support channels (https://access.redhat.com/site/support).

Comment 7 Red Hat Bugzilla 2023-09-14 01:15:30 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days