X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fgpg.py;h=62bfe096510453c180acb4fda1f5b80af6581ffa;hb=27e00376e81d1c37ff327ee0d39670b266418869;hp=0e080df5a6558164bb259a9b529cc2087dcfa611;hpb=99a886503d98524e6def46fe8aba86d76c2e6866;p=dak.git diff --git a/daklib/gpg.py b/daklib/gpg.py index 0e080df5..62bfe096 100644 --- a/daklib/gpg.py +++ b/daklib/gpg.py @@ -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 )