[gnome-builder] libide/threading: remove TIOSCTTY ioctl()
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/threading: remove TIOSCTTY ioctl()
- Date: Thu, 14 Jul 2022 02:28:07 +0000 (UTC)
commit 1f2cd856612fafc7610b74f63e7aaff920a0ea45
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 13 19:27:57 2022 -0700
libide/threading: remove TIOSCTTY ioctl()
We don't seen to need this anymore, so just get rid of it as it gets in
the way of flatpak-spawn actually passing the TTY across to the subprocess
off the host.
src/libide/threading/ide-subprocess-launcher.c | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
---
diff --git a/src/libide/threading/ide-subprocess-launcher.c b/src/libide/threading/ide-subprocess-launcher.c
index 7e5daf93a..89c8fc2e9 100644
--- a/src/libide/threading/ide-subprocess-launcher.c
+++ b/src/libide/threading/ide-subprocess-launcher.c
@@ -87,6 +87,7 @@ child_setup_func (gpointer data)
setsid ();
setpgid (0, 0);
+#endif
#ifdef __linux__
/*
@@ -97,14 +98,6 @@ child_setup_func (gpointer data)
if (data != NULL)
prctl (PR_SET_PDEATHSIG, SIGKILL);
#endif
-
- if (isatty (STDIN_FILENO))
- {
- if (ioctl (STDIN_FILENO, TIOCSCTTY, 0) != 0)
- g_warning ("Failed to setup TIOCSCTTY on stdin: %s",
- g_strerror (errno));
- }
-#endif
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]