summaryrefslogtreecommitdiff
path: root/scripts
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
parentd482ccc485f98416b0df5bbcad97110bc390c35c (diff)
downloadconnman-c1ed62089c08b960fd7d16cdaa15e3215710af6c.tar.gz
connman-c1ed62089c08b960fd7d16cdaa15e3215710af6c.tar.bz2
connman-c1ed62089c08b960fd7d16cdaa15e3215710af6c.zip
Add dbus_connection_flush() to DHCP scripts
Diffstat (limited to 'scripts')
-rw-r--r--scripts/dhclient-script.c2
-rw-r--r--scripts/udhcpc-script.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dhclient-script.c b/scripts/dhclient-script.c
index 68b755a3..bf2316d0 100644
--- a/scripts/dhclient-script.c
+++ b/scripts/dhclient-script.c
@@ -118,6 +118,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);
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);