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 630484 - GDM should set SIGPIPE handler to default before starting Xsession
GDM should set SIGPIPE handler to default before starting Xsession
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.31.x
Other Solaris
: Normal normal
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2010-09-24 05:19 UTC by Brian Cameron
Modified: 2011-02-07 14:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch fixing issue (744 bytes, application/octet-stream)
2010-09-24 05:19 UTC, Brian Cameron
Details

Description Brian Cameron 2010-09-24 05:19:48 UTC
Created attachment 170998 [details]
patch fixing issue

Some users have complained that because GDM sets SIGPIPE to ignore that this causes problems when running programs started in the user session.  For example, if the user runs "cat file | head -10" the head command completes after processing 10 lines and sends a SIGPIPE to cat to inform it to exit.  However, when SIGPIPE is set to ignore, the CPU is wasted while cat completes.

I'm attaching a patch that fixes this issue and sets SIGPIPE to SIG_DFL before running the Xsession script.  Note this is done after fork() so it doesn't affect the gdm-session-worker process.
Comment 1 Brian Cameron 2011-01-26 01:10:46 UTC
This was fixed in build 152.
Comment 2 Brian Cameron 2011-01-26 01:13:32 UTC
Sorry, reopening, I got confused.