summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-spawn.c
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2006-09-07 18:24:11 +0000
committerJohn (J5) Palmieri <johnp@redhat.com>2006-09-07 18:24:11 +0000
commitd3ae8527461b48a00a153d511c57952a8197c921 (patch)
treea1e807f2586299300fce2e9f15f355434690a316 /dbus/dbus-spawn.c
parent1eae184450a585f10c8988613e0f7259e1d6066a (diff)
* Clean up close calls to use _dbus_close (Patch from
Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>)
Diffstat (limited to 'dbus/dbus-spawn.c')
-rw-r--r--dbus/dbus-spawn.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c
index 1ab16b97..508bbdca 100644
--- a/dbus/dbus-spawn.c
+++ b/dbus/dbus-spawn.c
@@ -276,13 +276,13 @@ _dbus_babysitter_unref (DBusBabysitter *sitter)
* a hangup and then the babysitter will
* quit itself.
*/
- close (sitter->socket_to_babysitter);
+ _dbus_close (sitter->socket_to_babysitter, NULL);
sitter->socket_to_babysitter = -1;
}
if (sitter->error_pipe_from_child >= 0)
{
- close (sitter->error_pipe_from_child);
+ _dbus_close (sitter->error_pipe_from_child, NULL);
sitter->error_pipe_from_child = -1;
}
@@ -470,7 +470,7 @@ static void
close_socket_to_babysitter (DBusBabysitter *sitter)
{
_dbus_verbose ("Closing babysitter\n");
- close (sitter->socket_to_babysitter);
+ _dbus_close (sitter->socket_to_babysitter, NULL);
sitter->socket_to_babysitter = -1;
}
@@ -478,7 +478,7 @@ static void
close_error_pipe_from_child (DBusBabysitter *sitter)
{
_dbus_verbose ("Closing child error\n");
- close (sitter->error_pipe_from_child);
+ _dbus_close (sitter->error_pipe_from_child, NULL);
sitter->error_pipe_from_child = -1;
}
@@ -753,7 +753,7 @@ close_and_invalidate (int *fd)
return -1;
else
{
- ret = close (*fd);
+ ret = _dbus_close (*fd, NULL);
*fd = -1;
}