[anjuta] libanjuta: anjuta_launcher sends last line even if not terminated by EOL
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] libanjuta: anjuta_launcher sends last line even if not terminated by EOL
- Date: Mon, 31 May 2010 19:15:28 +0000 (UTC)
commit b2b984720bad1c831528717097afd1b02dca58c4
Author: Sébastien Granjoux <seb sfo free fr>
Date: Mon May 31 19:40:52 2010 +0200
libanjuta: anjuta_launcher sends last line even if not terminated by EOL
libanjuta/anjuta-launcher.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/libanjuta/anjuta-launcher.c b/libanjuta/anjuta-launcher.c
index 79a85c4..baf88b8 100644
--- a/libanjuta/anjuta-launcher.c
+++ b/libanjuta/anjuta-launcher.c
@@ -965,9 +965,23 @@ anjuta_launcher_execution_done_cleanup (AnjutaLauncher *launcher,
if (launcher->priv->pty_output_buffer)
g_free (launcher->priv->pty_output_buffer);
if (launcher->priv->stdout_buffer)
+ {
+ /* Send remaining data if last line is not terminated with EOL */
+ (launcher->priv->output_callback)(launcher,
+ ANJUTA_LAUNCHER_OUTPUT_STDOUT,
+ launcher->priv->stdout_buffer,
+ launcher->priv->callback_data);
g_free (launcher->priv->stdout_buffer);
+ }
if (launcher->priv->stderr_buffer)
+ {
+ /* Send remaining data if last line is not terminated with EOL */
+ (launcher->priv->output_callback)(launcher,
+ ANJUTA_LAUNCHER_OUTPUT_STDERR,
+ launcher->priv->stderr_buffer,
+ launcher->priv->callback_data);
g_free (launcher->priv->stdout_buffer);
+ }
/* Save them before we re-initialize */
child_status = launcher->priv->child_status;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]