[Opendnssec-commits] [svn.opendnssec.org/svn/dnssec] r6118 - trunk/OpenDNSSEC/signer/src

jerry at opendnssec.org jerry at opendnssec.org
Tue Jan 31 14:27:16 CET 2012


Author: jerry
Date: 2012-01-31 14:27:16 +0100 (Tue, 31 Jan 2012)
New Revision: 6118

Modified:
   trunk/OpenDNSSEC/signer/src/ods-signer.c
Log:
OPENDNSSEC-207: Clear the stdin fd when not using interactive mode

Modified: trunk/OpenDNSSEC/signer/src/ods-signer.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/ods-signer.c	2012-01-31 13:25:48 UTC (rev 6117)
+++ trunk/OpenDNSSEC/signer/src/ods-signer.c	2012-01-31 13:27:16 UTC (rev 6118)
@@ -126,6 +126,8 @@
             ods_writen(sockfd, cmd, strlen(cmd));
             cmd_written = 1;
             stdineof = 1;
+            /* Clear the interactive mode / stdin fd from the set */
+            FD_CLR(fileno(fp), &rset);
             continue;
         }
 




More information about the Opendnssec-commits mailing list