diff options
author | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2018-07-13 13:37:11 +0200 |
---|---|---|
committer | Thomas Hindoe Paaboel Andersen <phomes@gmail.com> | 2018-07-13 13:37:11 +0200 |
commit | 102bcaffa24b333beb11550db1b5026ed198ff3f (patch) | |
tree | 05d6274e1b99b123af64bf0fb043dafb7d847d59 | |
parent | a8b416f9feb4c3aaa186f134954a97c52e476993 (diff) | |
download | glib-102bcaffa24b333beb11550db1b5026ed198ff3f.tar.gz |
gspawn: correct indentation in do_posix_spawn
The indentation was slightly wrong for this section when introduced
in commit 61f54591acdfe69315cef6d1aa6d3bf1ff763082
-rw-r--r-- | glib/gspawn.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/glib/gspawn.c b/glib/gspawn.c index dfd97b1a8..1ab33077c 100644 --- a/glib/gspawn.c +++ b/glib/gspawn.c @@ -1417,24 +1417,24 @@ do_posix_spawn (gchar **argv, GINT_TO_POINTER (child_close_fds[i])); } - r = posix_spawnattr_setflags (&attr, POSIX_SPAWN_SETSIGDEF); - if (r != 0) - goto out_free_spawnattr; - - /* Reset some signal handlers that we may use */ - sigemptyset (&mask); - sigaddset (&mask, SIGCHLD); - sigaddset (&mask, SIGINT); - sigaddset (&mask, SIGTERM); - sigaddset (&mask, SIGHUP); - - r = posix_spawnattr_setsigdefault (&attr, &mask); - if (r != 0) - goto out_free_spawnattr; - - r = posix_spawn_file_actions_init (&file_actions); - if (r != 0) - goto out_free_spawnattr; + r = posix_spawnattr_setflags (&attr, POSIX_SPAWN_SETSIGDEF); + if (r != 0) + goto out_free_spawnattr; + + /* Reset some signal handlers that we may use */ + sigemptyset (&mask); + sigaddset (&mask, SIGCHLD); + sigaddset (&mask, SIGINT); + sigaddset (&mask, SIGTERM); + sigaddset (&mask, SIGHUP); + + r = posix_spawnattr_setsigdefault (&attr, &mask); + if (r != 0) + goto out_free_spawnattr; + + r = posix_spawn_file_actions_init (&file_actions); + if (r != 0) + goto out_free_spawnattr; /* Redirect pipes as required */ |