On Jul 7, 2016, at 8:52 AM, Derek Foreman <[email protected]> wrote: > > We're leaking the fd when sending cut'n'paste. Failure to close can also > makes the other end unhappy because it doesn't know the paste is finished. > > Signed-off-by: Derek Foreman <[email protected]>
Occurrences in other weston clients already mimc this patch in a similar fashion, so this is Reviewed-by: Yong Bakos <[email protected]> Regards, yong > --- > clients/editor.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/clients/editor.c b/clients/editor.c > index e081a5b..9daa77f 100644 > --- a/clients/editor.c > +++ b/clients/editor.c > @@ -575,6 +575,8 @@ data_source_send(void *data, > > if (write(fd, editor->selected_text, strlen(editor->selected_text) + 1) > < 0) > fprintf(stderr, "write failed: %m\n"); > + > + close(fd); > } > > static void > -- > 2.8.1 > > _______________________________________________ > wayland-devel mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/wayland-devel _______________________________________________ wayland-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/wayland-devel
