mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-03 06:13:08 +02:00
Merge branch 'indentation_correction_gspawn' into 'master'
gspawn: correct indentation in do_posix_spawn See merge request GNOME/glib!180
This commit is contained in:
commit
b9d390dc44
@ -1417,24 +1417,24 @@ do_posix_spawn (gchar **argv,
|
|||||||
GINT_TO_POINTER (child_close_fds[i]));
|
GINT_TO_POINTER (child_close_fds[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
r = posix_spawnattr_setflags (&attr, POSIX_SPAWN_SETSIGDEF);
|
r = posix_spawnattr_setflags (&attr, POSIX_SPAWN_SETSIGDEF);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
goto out_free_spawnattr;
|
goto out_free_spawnattr;
|
||||||
|
|
||||||
/* Reset some signal handlers that we may use */
|
/* Reset some signal handlers that we may use */
|
||||||
sigemptyset (&mask);
|
sigemptyset (&mask);
|
||||||
sigaddset (&mask, SIGCHLD);
|
sigaddset (&mask, SIGCHLD);
|
||||||
sigaddset (&mask, SIGINT);
|
sigaddset (&mask, SIGINT);
|
||||||
sigaddset (&mask, SIGTERM);
|
sigaddset (&mask, SIGTERM);
|
||||||
sigaddset (&mask, SIGHUP);
|
sigaddset (&mask, SIGHUP);
|
||||||
|
|
||||||
r = posix_spawnattr_setsigdefault (&attr, &mask);
|
r = posix_spawnattr_setsigdefault (&attr, &mask);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
goto out_free_spawnattr;
|
goto out_free_spawnattr;
|
||||||
|
|
||||||
r = posix_spawn_file_actions_init (&file_actions);
|
r = posix_spawn_file_actions_init (&file_actions);
|
||||||
if (r != 0)
|
if (r != 0)
|
||||||
goto out_free_spawnattr;
|
goto out_free_spawnattr;
|
||||||
|
|
||||||
/* Redirect pipes as required */
|
/* Redirect pipes as required */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user