Bug 89386 - weston-launch ends in tight poll/recvmsg loop when straced and weston terminates
Summary: weston-launch ends in tight poll/recvmsg loop when straced and weston terminates
Status: RESOLVED FIXED
Alias: None
Product: Wayland
Classification: Unclassified
Component: weston (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Wayland bug list
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-01 22:45 UTC by Bruno
Modified: 2018-06-04 09:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
[Patch] Also quit(wl) on EOF for wl.sock[0] (938 bytes, text/plain)
2015-03-01 22:45 UTC, Bruno
Details

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.