zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] allows configure to run in the background
@ 2003-11-25  3:51 Philippe Troin
  2003-11-25 20:36 ` Philippe Troin
  0 siblings, 1 reply; 2+ messages in thread
From: Philippe Troin @ 2003-11-25  3:51 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 224 bytes --]

The checking "if tcsetpgrp() actually works" configure test stops the
configure script if it is ran in the background. The enclose patch
prevents this from happening by ignoring SIGTTOU for the duration of
this test.

Phil.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: zsh-bgconfigure.patch --]
[-- Type: text/x-patch, Size: 744 bytes --]

Index: zshconfig.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/zshconfig.ac,v
retrieving revision 1.42
diff -b -u -r1.42 zshconfig.ac
--- zshconfig.ac	13 Nov 2003 14:34:34 -0000	1.42
+++ zshconfig.ac	25 Nov 2003 03:38:29 -0000
@@ -1577,6 +1577,7 @@
 dnl for instance, BeOS R4.51 does not support it yet
 dnl -----------
 if test -t 0 && test $ac_cv_func_tcsetpgrp = yes; then
+    trap "" SIGTTOU > /dev/null 2>&1 || :
     AC_CACHE_CHECK(if tcsetpgrp() actually works,
     zsh_cv_sys_tcsetpgrp,
     [AC_TRY_RUN([
@@ -1594,6 +1595,7 @@
     if test $zsh_cv_sys_tcsetpgrp = no; then
       AC_DEFINE(BROKEN_TCSETPGRP)
     fi
+    trap - SIGTTOU > /dev/null 2>&1 || :
 fi
 
 dnl -----------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-25 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-25  3:51 [PATCH] allows configure to run in the background Philippe Troin
2003-11-25 20:36 ` Philippe Troin

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).