mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-03 14:42:10 +01:00
Use fork1() not fork for G_THREADS_IMPL_SOLARIS. (#136971, Sebastian
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com> * glib/gspawn.c: Use fork1() not fork for G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
This commit is contained in:
parent
d261f3fbfc
commit
f0f807c51f
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gspawn.c: Use fork1() not fork for
|
||||||
|
G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
|
||||||
|
|
||||||
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gspawn.c: Use fork1() not fork for
|
||||||
|
G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
|
||||||
|
|
||||||
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gspawn.c: Use fork1() not fork for
|
||||||
|
G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
|
||||||
|
|
||||||
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gspawn.c: Use fork1() not fork for
|
||||||
|
G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
|
||||||
|
|
||||||
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gspawn.c: Use fork1() not fork for
|
||||||
|
G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
|
||||||
|
|
||||||
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 14 13:23:36 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* glib/gspawn.c: Use fork1() not fork for
|
||||||
|
G_THREADS_IMPL_SOLARIS. (#136971, Sebastian Wilhelmi)
|
||||||
|
|
||||||
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
Sun Mar 14 12:58:30 2004 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
* glib/gmain.c: if _POLL_EMUL_H is defined, undefine
|
||||||
|
@ -39,6 +39,17 @@
|
|||||||
|
|
||||||
#include "glibintl.h"
|
#include "glibintl.h"
|
||||||
|
|
||||||
|
/* With solaris threads, fork() duplicates all threads, which
|
||||||
|
* a) could cause unexpected side-effects, and b) is expensive.
|
||||||
|
* Once we remove support for solaris threads, the FORK1 #define
|
||||||
|
* should be removedl
|
||||||
|
*/
|
||||||
|
#ifdef G_THREADS_IMPL_SOLARIS
|
||||||
|
#define FORK1() fork1()
|
||||||
|
#else
|
||||||
|
#define FORK1() fork()
|
||||||
|
#endif
|
||||||
|
|
||||||
static gint g_execute (const gchar *file,
|
static gint g_execute (const gchar *file,
|
||||||
gchar **argv,
|
gchar **argv,
|
||||||
gchar **envp,
|
gchar **envp,
|
||||||
@ -1056,7 +1067,7 @@ fork_exec_with_pipes (gboolean intermediate_child,
|
|||||||
if (standard_error && !make_pipe (stderr_pipe, error))
|
if (standard_error && !make_pipe (stderr_pipe, error))
|
||||||
goto cleanup_and_fail;
|
goto cleanup_and_fail;
|
||||||
|
|
||||||
pid = fork ();
|
pid = FORK1 ();
|
||||||
|
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
{
|
{
|
||||||
@ -1098,7 +1109,7 @@ fork_exec_with_pipes (gboolean intermediate_child,
|
|||||||
*/
|
*/
|
||||||
GPid grandchild_pid;
|
GPid grandchild_pid;
|
||||||
|
|
||||||
grandchild_pid = fork ();
|
grandchild_pid = FORK1 ();
|
||||||
|
|
||||||
if (grandchild_pid < 0)
|
if (grandchild_pid < 0)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user