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 369765 - spawn_async and friends can't inherit from parent environment
spawn_async and friends can't inherit from parent environment
Status: RESOLVED INVALID
Product: glibmm
Classification: Bindings
Component: general
2.12.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-11-03 01:43 UTC by Jonathon Jongsma
Modified: 2006-11-03 03:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to pass NULL for empty envp arrays (3.12 KB, patch)
2006-11-03 01:57 UTC, Jonathon Jongsma
none Details | Review

Description Jonathon Jongsma 2006-11-03 01:43:40 UTC
In the C glib functions g_spawn_async*, you can pass a NULL pointer to indicate that you want the new process to run in the same environment as the parent.  The wrapper functions Glib::spawn_async do not allow this since they require a reference for the envp argument.  I'll attach a patch that will pass a NULL pointer down to the Glib function if the passed envp array is empty
Comment 1 Jonathon Jongsma 2006-11-03 01:57:17 UTC
Created attachment 75907 [details] [review]
patch to pass NULL for empty envp arrays

This is a patch against head.
Comment 2 Jonathon Jongsma 2006-11-03 03:30:31 UTC
didn't notice the overload.  Sorry.  Ignore this.