[file-roller] Detach the child process from the tty.
- From: Paolo Bacchilega <paobac src gnome org>
- To: svn-commits-list gnome org
- Subject: [file-roller] Detach the child process from the tty.
- Date: Wed, 15 Jul 2009 08:25:49 +0000 (UTC)
commit 6429de3d50e759afd71c3557e39c83194e041cac
Author: Paolo Bacchilega <paobac src gnome org>
Date: Wed Jul 15 10:24:09 2009 +0200
Detach the child process from the tty.
This avoids the child process from asking the password when
file-roller is started from a terminal.
[fixed bug #588547]
src/fr-process.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/fr-process.c b/src/fr-process.c
index d590c60..bae8d1c 100644
--- a/src/fr-process.c
+++ b/src/fr-process.c
@@ -632,12 +632,17 @@ fr_process_set_err_line_func (FrProcess *process,
static gboolean check_child (gpointer data);
-static void child_setup (gpointer user_data)
+static void
+child_setup (gpointer user_data)
{
FrProcess *process = user_data;
if (process->priv->use_standard_locale)
putenv ("LC_MESSAGES=C");
+
+ /* detach from the tty */
+
+ setsid ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]