kov changed libgksu/trunk/ChangeLog, libgksu/trunk/libgksu/libgksu.c

Gustavo Noronha kov at costa.debian.org
Thu Sep 7 18:26:36 UTC 2006


Mensagem de log: 
also make gksu_su_full's child session leader


-----


Modified: libgksu/trunk/ChangeLog
===================================================================
--- libgksu/trunk/ChangeLog	2006-09-07 18:10:36 UTC (rev 717)
+++ libgksu/trunk/ChangeLog	2006-09-07 18:26:36 UTC (rev 718)
@@ -6,6 +6,9 @@
 	  time and size constraints, though, so we won't end up in an infinite
 	  loop; this addresses #17139; libpam-mount should now work happily with
 	  debug on
+	- also make su's child session leader, like sudo's, so that when the
+	  program you ran launches another, closing the first will not destroy
+	  the second
 
 2006-09-02  Gustavo Noronha Silva  <kov at debian.org>
 

Modified: libgksu/trunk/libgksu/libgksu.c
===================================================================
--- libgksu/trunk/libgksu/libgksu.c	2006-09-07 18:10:36 UTC (rev 717)
+++ libgksu/trunk/libgksu/libgksu.c	2006-09-07 18:26:36 UTC (rev 718)
@@ -1759,6 +1759,7 @@
     {
       gchar **cmd = g_malloc (sizeof(gchar*)*7);
 
+      setsid();   // make us session leader
       cmd[i] = g_strdup ("/bin/su"); i++;
       if (context->login_shell)
 	{




More information about the gksu-commits mailing list