spawn: Use CLOEXEC for pipes (#1811)

Fixes: https://github.com/awesomeWM/awesome/issues/1193#issuecomment-305705724
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-06-02 10:13:26 +02:00 committed by Daniel Hahler
parent 6254e6b7d3
commit 84080c64c5
3 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ pkg_check_modules(AWESOME_COMMON_REQUIRED REQUIRED
xcb>=1.6)
set(AWESOME_DEPENDENCIES
glib-2.0
glib-2.0>=2.40
gdk-pixbuf-2.0
cairo
x11

View File

@ -53,7 +53,7 @@ environment):
introspection
- [Pango](http://www.pango.org/) with support for Cairo and GObject
introspection
- [GLib](https://wiki.gnome.org/Projects/GLib) with support for GObject
- [GLib >= 2.40](https://wiki.gnome.org/Projects/GLib) with support for GObject
introspection
- [GIO](https://developer.gnome.org/gio/stable/) with support for GObject
introspection

View File

@ -498,7 +498,7 @@ luaA_spawn(lua_State *L)
g_timeout_add_seconds(AWESOME_SPAWN_TIMEOUT, spawn_launchee_timeout, context);
}
flags |= G_SPAWN_SEARCH_PATH;
flags |= G_SPAWN_SEARCH_PATH | G_SPAWN_CLOEXEC_PIPES;
retval = g_spawn_async_with_pipes(NULL, argv, NULL, flags,
spawn_callback, context, &pid,
stdin_ptr, stdout_ptr, stderr_ptr, &error);