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:
parent
6254e6b7d3
commit
84080c64c5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
2
spawn.c
2
spawn.c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue