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 127980 - New flag for gspawn_async_with_pipes: G_SPAWN_STDERR_TO_STDOUT
New flag for gspawn_async_with_pipes: G_SPAWN_STDERR_TO_STDOUT
Status: RESOLVED OBSOLETE
Product: glib
Classification: Platform
Component: gsubprocess
2.3.x
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2003-11-26 14:46 UTC by Nicolás Lichtmaier
Modified: 2018-05-24 10:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nicolás Lichtmaier 2003-11-26 14:46:28 UTC
It would be nice to be able to call g_spawn_async_with_pipes and get
stdout+stderr in the same file descriptor (which is dup2'ed in the child).
So there could be a new G_SPAWN_STDERR_TO_STDOUT flag which would make
something analog to

$ command 2>&1

Thanks.
Comment 1 Manish Singh 2004-04-17 02:01:29 UTC
I think this would be useful too, since I could've used it in an app I wrote (I
wound up using a child_setup function to do it). I'd be willing to do the unix
implementation, how doable is this on windows?
Comment 2 Tor Lillqvist 2004-04-18 18:19:45 UTC
Yes, doable on Windows. Would not add much complexity to the implementation 
(which already has to use a helper program to take care of some of the non-
Unixness).
Comment 3 Matthias Clasen 2004-09-02 03:11:42 UTC
Yosh, do you have a patch for this ?
Comment 4 Manish Singh 2004-09-02 05:45:35 UTC
Not yet, but I can cook one up in a couple of days.
Comment 5 Allison Karlitskaya (desrt) 2013-10-25 05:20:35 UTC
We now have this as G_SUBPROCESS_FLAGS_STDERR_MERGE.  Might be nice to get it in gspawn too, then we could simplify the implementation in GSubprocess.
Comment 6 GNOME Infrastructure Team 2018-05-24 10:30:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/17.