]> code.delx.au - gnu-emacs/commitdiff
* process.c (deactivate_process): Reset fds to -1.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Aug 2013 20:17:32 +0000 (13:17 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Aug 2013 20:17:32 +0000 (13:17 -0700)
This fixes a problem introduced by the Bug#15035 patch
when using GPG.  Reported by Herbert J. Skuhra.

src/ChangeLog
src/process.c

index 04c89b63fa44bf3e765d7265c77eae6d33d504eb..3b8dfe011ee1d956dfc33fa7e91e880e025a3e12 100644 (file)
@@ -1,3 +1,9 @@
+2013-08-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * process.c (deactivate_process): Reset fds to -1 (Bug#15035).
+       This fixes a problem introduced by the Bug#15035 patch
+       when using GPG.  Reported by Herbert J. Skuhra.
+
 2013-08-12  Eli Zaretskii  <eliz@gnu.org>
 
        * decompress.c <zlib_initialized> [WINDOWSNT]: New static variable.
index a2bcffe5160783109a591bf6f546a4310687778b..c803d69d6d8aab3ff9f2e0c4f018e8bc82ae53b2 100644 (file)
@@ -3842,6 +3842,8 @@ deactivate_process (Lisp_Object proc)
 
   if (inchannel >= 0)
     {
+      p->infd  = -1;
+      p->outfd = -1;
 #ifdef DATAGRAM_SOCKETS
       if (DATAGRAM_CHAN_P (inchannel))
        {