summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c
index 9e8db51a..0636c580 100644
--- a/src/session.c
+++ b/src/session.c
@@ -422,6 +422,8 @@ session_watch_cb (GPid pid, gint status, gpointer data)
{
Session *session = data;
+ session->priv->child_watch = 0;
+
if (WIFEXITED (status))
l_debug (session, "Exited with return value %d", WEXITSTATUS (status));
else if (WIFSIGNALED (status))