summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:35:08 +0000
committerLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2007-09-28 13:35:08 +0000
commitf3314791b10f4c7ccc17ab4fd51c9642a670e0a7 (patch)
treeeada496965fd45848fd977abeab380958c7c75be
parentda7741d54263d6de3475b8c10db3c1dd3ebaebaf (diff)
Fix interface removal on script exit.
-rw-r--r--network/common.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/network/common.c b/network/common.c
index e634ac43..b5f42b19 100644
--- a/network/common.c
+++ b/network/common.c
@@ -89,11 +89,8 @@ static void script_exited(GPid pid, gint status, gpointer data)
else
debug("%d was killed by signal %d", pid, WTERMSIG(status));
- g_spawn_close_pid(pid);
- pid = 0;
-
- g_free(bnep->devname);
- pids = g_slist_remove(pids, bnep);
+ g_spawn_close_pid(bnep->pid);
+ bnep->pid = 0;
}
uint16_t bnep_service_id(const char *svc)