summaryrefslogtreecommitdiff
path: root/scripts/udhcpc-script.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-31 08:34:14 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-31 08:34:14 +0100
commitc1ed62089c08b960fd7d16cdaa15e3215710af6c (patch)
treeecea8329746c4cf774ce7181f3097cd926c01cd4 /scripts/udhcpc-script.c
parentd482ccc485f98416b0df5bbcad97110bc390c35c (diff)
downloadconnman-c1ed62089c08b960fd7d16cdaa15e3215710af6c.tar.gz
connman-c1ed62089c08b960fd7d16cdaa15e3215710af6c.tar.bz2
connman-c1ed62089c08b960fd7d16cdaa15e3215710af6c.zip
Add dbus_connection_flush() to DHCP scripts
Diffstat (limited to 'scripts/udhcpc-script.c')
-rw-r--r--scripts/udhcpc-script.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/udhcpc-script.c b/scripts/udhcpc-script.c
index 04487609..fb2168bc 100644
--- a/scripts/udhcpc-script.c
+++ b/scripts/udhcpc-script.c
@@ -89,6 +89,8 @@ int main(int argc, char *argv[])
if (dbus_connection_send(conn, msg, NULL) == FALSE)
fprintf(stderr, "Failed to send message\n");
+ dbus_connection_flush(conn);
+
dbus_message_unref(msg);
dbus_connection_unref(conn);