]> git.decadent.org.uk Git - dak.git/commitdiff
Merge remote-tracking branch 'master/master' into signatures-2
authorAnsgar Burchardt <ansgar@43-1.org>
Fri, 3 Jun 2011 09:58:45 +0000 (11:58 +0200)
committerAnsgar Burchardt <ansgar@43-1.org>
Fri, 3 Jun 2011 09:58:45 +0000 (11:58 +0200)
daklib/gpg.py

index 0e080df5a6558164bb259a9b529cc2087dcfa611..62bfe096510453c180acb4fda1f5b80af6581ffa 100644 (file)
@@ -114,6 +114,10 @@ class SignedFile(object):
                     raise GpgException("No valid signature found. (GPG exited with status code %s)\n%s" % (exit_code, self.stderr))
 
     def _do_io(self, read, write):
+        for fd in write.keys():
+            old = fcntl.fcntl(fd, fcntl.F_GETFL)
+            fcntl.fcntl(fd, fcntl.F_SETFL, old | os.O_NONBLOCK)
+
         read_lines = dict( (fd, []) for fd in read )
         write_pos = dict( (fd, 0) for fd in write )