Bug 89386

Summary: weston-launch ends in tight poll/recvmsg loop when straced and weston terminates
Product: Wayland Reporter: Bruno <bonbons>
Component: westonAssignee: Wayland bug list <wayland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: [Patch] Also quit(wl) on EOF for wl.sock[0]

Description Bruno 2015-03-01 22:45:52 UTC
Created attachment 113903 [details]
[Patch] Also quit(wl) on EOF for wl.sock[0]

When sending SIGTERM to weston-launch to terminate session, or even when weston fails to start (e.g. no GLESv2 support), weston-launch ends up in tight poll() & recvmsg() loop where poll() returns POLLIN|POLLHUP for wl.sock[0].

This issue seems to only happen when stracing weston-launch.
Comment 1 Pekka Paalanen 2015-03-27 12:03:02 UTC
Hi,

a patch, cool! Could you post it to the mailing list, please?
That way we get it tracked in http://patchwork.freedesktop.org/project/wayland/list/ and into the review pipe.
Comment 2 Bruno 2015-03-27 12:31:13 UTC
(In reply to Pekka Paalanen from comment #1)
> Hi,
> 
> a patch, cool! Could you post it to the mailing list, please?
> That way we get it tracked in
> http://patchwork.freedesktop.org/project/wayland/list/ and into the review
> pipe.

Sent, though might get held back by list moderation.

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.