[Xfce4-commits] [panel-plugins/xfce4-verve-plugin] 01/01: Potential fix for bug 2872 - run setsid() before launching command so new process is not connected to TTY

noreply at xfce.org noreply at xfce.org
Sun Feb 1 22:35:37 CET 2015


This is an automated email from the git hooks/post-receive script.

isaacschemm pushed a commit to branch master
in repository panel-plugins/xfce4-verve-plugin.

commit d006fea6cdd6b2bfb5c38454f00a5950976cf675
Author: Isaac Schemm <isaacschemm at gmail.com>
Date:   Sun Feb 1 15:34:32 2015 -0600

    Potential fix for bug 2872 - run setsid() before launching command so new process is not connected to TTY
---
 panel-plugin/verve.c |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/panel-plugin/verve.c b/panel-plugin/verve.c
index ede2747..a144f78 100644
--- a/panel-plugin/verve.c
+++ b/panel-plugin/verve.c
@@ -120,6 +120,11 @@ verve_shutdown (void)
 
 
 
+static void verve_setsid (gpointer p)
+{
+	setsid();
+}
+
 /*********************************************************************
  *
  * Verve command line execution function
@@ -157,7 +162,7 @@ gboolean verve_spawn_command_line (const gchar *cmdline)
   flags |= G_SPAWN_SEARCH_PATH;
   
   /* Spawn subprocess */
-  success = g_spawn_async (home_dir, argv, NULL, flags, NULL, NULL, NULL, &error);
+  success = g_spawn_async (home_dir, argv, NULL, flags, verve_setsid, NULL, NULL, &error);
 
   /* Return false if subprocess could not be spawned */
   if (G_UNLIKELY (error != NULL)) 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list