projects
/
connman
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab8a6e3
)
Fix shutdown procedure
author
Marcel Holtmann
<marcel@holtmann.org>
Wed, 9 Jan 2008 16:01:48 +0000
(17:01 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Wed, 9 Jan 2008 16:01:48 +0000
(17:01 +0100)
plugins/supplicant.c
patch
|
blob
|
history
diff --git
a/plugins/supplicant.c
b/plugins/supplicant.c
index
4787f43
..
583b1f7
100644
(file)
--- a/
plugins/supplicant.c
+++ b/
plugins/supplicant.c
@@
-244,6
+244,10
@@
int __supplicant_stop(struct connman_iface *iface)
exec_cmd(task, "DETACH");
+ sleep(1);
+
+ kill(task->pid, SIGTERM);
+
//close(task->socket);
g_io_channel_unref(task->channel);
@@
-251,8
+255,6
@@
int __supplicant_stop(struct connman_iface *iface)
"%s/%s.cli", STATEDIR, task->ifname);
unlink(pathname);
- kill(task->pid, SIGTERM);
-
free(task->ifname);
g_free(task);