moo_term_kill_child()

This commit is contained in:
Yevgen Muntyan 2005-07-25 18:50:24 +00:00
parent c74f0e16eb
commit e78487fb1a
2 changed files with 11 additions and 1 deletions

View File

@ -889,7 +889,8 @@ void moo_term_feed_child (MooTerm *term,
int len)
{
g_return_if_fail (MOO_IS_TERM (term) && string != NULL);
moo_term_pt_write (term->priv->pt, string, len);
if (moo_term_pt_child_alive (term->priv->pt))
moo_term_pt_write (term->priv->pt, string, len);
}
@ -1692,3 +1693,11 @@ void moo_term_release_selection (MooTerm *term)
term->priv->owns_selection = FALSE;
}
}
void moo_term_kill_child (MooTerm *term)
{
g_return_if_fail (MOO_IS_TERM (term));
if (moo_term_pt_child_alive (term->priv->pt))
moo_term_pt_kill_child (term->priv->pt);
}

View File

@ -77,6 +77,7 @@ gboolean moo_term_fork_command (MooTerm *term,
const char *cmd,
const char *working_dir,
char **envp);
void moo_term_kill_child (MooTerm *term);
void moo_term_feed (MooTerm *term,
const char *data,