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 711304 - GsmProcessHelper: Port to GSubprocess
GsmProcessHelper: Port to GSubprocess
Status: RESOLVED FIXED
Product: gnome-session
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Session Maintainers
Session Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-11-02 19:41 UTC by Colin Walters
Modified: 2013-11-05 15:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GsmProcessHelper: Port to GSubprocess (6.58 KB, patch)
2013-11-02 19:41 UTC, Colin Walters
committed Details | Review

Description Colin Walters 2013-11-02 19:41:45 UTC
Just decided to do this to help demo/test GSubprocess.  I think the
code gets a *lot* better.
Comment 1 Colin Walters 2013-11-02 19:41:47 UTC
Created attachment 258817 [details] [review]
GsmProcessHelper: Port to GSubprocess
Comment 2 Colin Walters 2013-11-05 15:20:06 UTC
Attachment 258817 [details] pushed as bee8fa3 - GsmProcessHelper: Port to GSubprocess
Comment 3 Colin Walters 2013-11-05 15:21:13 UTC
IRC review for posterity:

<halfline_laptop> walters: does helper.error ever get propagated to the caller of gsmproceshelper ?
<walters> halfline_laptop: ah hah, good catch.  Needs:

+        helper.error = error;

<halfline_laptop> walters: it's a little weird to use GError ** in a structure
<halfline_laptop> i probably would have used a GError *
<halfline_laptop> but meh
<halfline_laptop> push if you've tested it and it works
<walters> halfline_laptop: i go back and forth on whether the async impl of a sync operaton should have its own error that's propagated, or merely point to an existing error