[gnumeric] solver: cleanup.
- From: Morten Welinder <mortenw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnumeric] solver: cleanup.
- Date: Tue, 17 Nov 2009 20:35:22 +0000 (UTC)
commit 13915223a6bdffa5d501fd0abe2918f408304ded
Author: Morten Welinder <terra gnome org>
Date: Tue Nov 17 15:35:07 2009 -0500
solver: cleanup.
src/tools/ChangeLog | 4 ++++
src/tools/gnm-solver.c | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/tools/ChangeLog b/src/tools/ChangeLog
index 02235a7..cee5e83 100644
--- a/src/tools/ChangeLog
+++ b/src/tools/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-17 Morten Welinder <terra gnome org>
+
+ * gnm-solver.c (cb_child_exit): When child exits, close the GPid.
+
2009-11-16 Jean Brefort <jean brefort normalesup org>
* Makefile.am: fixed external plugins compilation.
diff --git a/src/tools/gnm-solver.c b/src/tools/gnm-solver.c
index 44ddd8c..5579da9 100644
--- a/src/tools/gnm-solver.c
+++ b/src/tools/gnm-solver.c
@@ -1207,6 +1207,11 @@ cb_child_exit (GPid pid, gint status, GnmSubSolver *subsol)
g_signal_emit (subsol, solver_signals[SOL_SIG_CHILD_EXIT], 0,
normal, code);
+
+ if (subsol->child_pid) {
+ g_spawn_close_pid (subsol->child_pid);
+ subsol->child_pid = (GPid)0;
+ }
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]