diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-12-02 21:37:25 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-12-02 21:37:25 +0000 |
commit | f42f6da6d578f2819fa614c876cecd94188a1379 (patch) | |
tree | 874d54d8fe073461864efe63476465a1d82e0e21 /glib/gspawn.c | |
parent | 745229d45296c4e03e431d51892700e9466203fb (diff) | |
download | glib-f42f6da6d578f2819fa614c876cecd94188a1379.tar.gz |
Remove support for Solaris threads. (#136971, Sebastian Wilhelmi, patch by
2005-12-02 Matthias Clasen <mclasen@redhat.com>
* glib/gspawn.c:
* configure.in: Remove support for Solaris threads.
(#136971, Sebastian Wilhelmi, patch by Andrew Paprocki)
Diffstat (limited to 'glib/gspawn.c')
-rw-r--r-- | glib/gspawn.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/glib/gspawn.c b/glib/gspawn.c index 4c7fa91a3..6d77b25b7 100644 --- a/glib/gspawn.c +++ b/glib/gspawn.c @@ -40,17 +40,6 @@ #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, gchar **argv, gchar **envp, @@ -1094,7 +1083,7 @@ fork_exec_with_pipes (gboolean intermediate_child, if (standard_error && !make_pipe (stderr_pipe, error)) goto cleanup_and_fail; - pid = FORK1 (); + pid = fork (); if (pid < 0) { @@ -1136,7 +1125,7 @@ fork_exec_with_pipes (gboolean intermediate_child, */ GPid grandchild_pid; - grandchild_pid = FORK1 (); + grandchild_pid = fork (); if (grandchild_pid < 0) { |