texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[6306] prevent lingering processes on test interrupt


From: Gavin D. Smith
Subject: [6306] prevent lingering processes on test interrupt
Date: Wed, 03 Jun 2015 22:42:14 +0000

Revision: 6306
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=6306
Author:   gavin
Date:     2015-06-03 22:42:13 +0000 (Wed, 03 Jun 2015)
Log Message:
-----------
prevent lingering processes on test interrupt

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/info/t/Init-inter.inc

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2015-06-03 22:29:56 UTC (rev 6305)
+++ trunk/ChangeLog     2015-06-03 22:42:13 UTC (rev 6306)
@@ -1,3 +1,9 @@
+2015-06-03  Gavin Smith  <address@hidden>
+
+       * info/t/Init-inter.inc (run_ginfo): Close fd opened to control 
+       FIFO in subshell so pseudotty can exit for an EOF.  This 
+       prevents lingering processes if a test is interrupted.
+
 2015-06-03  Karl Berry  <address@hidden>
 
        * texindex/ti.twjr (usage, version): combine multi-line strings.

Modified: trunk/info/t/Init-inter.inc
===================================================================
--- trunk/info/t/Init-inter.inc 2015-06-03 22:29:56 UTC (rev 6305)
+++ trunk/info/t/Init-inter.inc 2015-06-03 22:42:13 UTC (rev 6306)
@@ -100,7 +100,11 @@
 {
   rm -f $FINISHEDFIFO
   mkfifo $FINISHEDFIFO
-  { $GINFO $GINFO_OPTIONS "$@" ;
+  { # Close fd opened to control FIFO in subshell so pseudotty can exit 
+    # for an EOF.  This prevents lingering processes if a test is 
+    # interrupted.
+    exec 7>&- ;
+    $GINFO $GINFO_OPTIONS "$@" ;
     test $? -eq 0 || echo failure >$FINISHEDFIFO ;
     echo finished >$FINISHEDFIFO ; } 0<>$PTS_DEVICE 1<&0 &
   SUBSHELL=$!




reply via email to

[Prev in Thread] Current Thread [Next in Thread]