Patchwork D8051: worker: Use buffered input from the pickle stream

login
register
mail settings
Submitter phabricator
Date Feb. 3, 2020, 4:06 p.m.
Message ID <e92d879a35fbfae02a602549350534ed@localhost.localdomain>
Download mbox | patch
Permalink /patch/44903/
State Not Applicable
Headers show

Comments

phabricator - Feb. 3, 2020, 4:06 p.m.
Closed by commit rHGcb52e619c99e: worker: Use buffered input from the pickle stream (authored by heftig).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8051?vs=19729&id=19856

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8051/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8051

AFFECTED FILES
  mercurial/worker.py

CHANGE DETAILS




To: heftig, #hg-reviewers
Cc: sheehan, mercurial-devel

Patch

diff --git a/mercurial/worker.py b/mercurial/worker.py
--- a/mercurial/worker.py
+++ b/mercurial/worker.py
@@ -226,7 +226,7 @@ 
     selector = selectors.DefaultSelector()
     for rfd, wfd in pipes:
         os.close(wfd)
-        selector.register(os.fdopen(rfd, 'rb', 0), selectors.EVENT_READ)
+        selector.register(os.fdopen(rfd, 'rb'), selectors.EVENT_READ)
 
     def cleanup():
         signal.signal(signal.SIGINT, oldhandler)