summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNate Straz <nstraz@redhat.com>2005-12-07 17:32:30 +0000
committerNathan Straz <nstraz@redhat.com>2008-09-23 09:37:45 -0400
commit6e5162a97d3c113243f9e349623aab4bd229460b (patch)
tree67a2de8c86ec943faaa8497342121fadf019847b
parent6044eba53664fa0e75ab3a54103c2cf993491f1b (diff)
downloadqarsh-1.3-2.zip
qarsh-1.3-2.tar.gz
qarsh-1.3-2.tar.xz
Ignore the SIGTTIN signal so we don't get caught in a read(0, ...)-SIGTTINv1.3-2
infinite loop.
-rw-r--r--qarsh.c6
-rw-r--r--qarsh.spec2
2 files changed, 7 insertions, 1 deletions
diff --git a/qarsh.c b/qarsh.c
index 4df34a0..21580f3 100644
--- a/qarsh.c
+++ b/qarsh.c
@@ -419,6 +419,12 @@ main(int argc, char *argv[])
memset(&sa, 0, sizeof sa);
sigemptyset(&sigmask);
sa.sa_mask = sigmask;
+ sa.sa_handler = SIG_IGN;
+ sigaction(SIGTTIN, &sa, NULL);
+
+ memset(&sa, 0, sizeof sa);
+ sigemptyset(&sigmask);
+ sa.sa_mask = sigmask;
sa.sa_flags = SA_ONESHOT;
sa.sa_handler = sig_alrm_handler;
sigaction(SIGALRM, &sa, NULL);
diff --git a/qarsh.spec b/qarsh.spec
index 42fa4e3..fe2fdc8 100644
--- a/qarsh.spec
+++ b/qarsh.spec
@@ -1,7 +1,7 @@
Summary: QA Remote Shell
Name: qarsh
Version: 1.3
-Release: 1
+Release: 2
Group: QA
License: GPL
Buildroot: %{_tmppath}/%{name}-%{version}-root