Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 99d8c82 in mainline


Ignore:
Timestamp:
2014-11-27T16:35:42Z (6 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
master
Children:
3de2365, 6069061
Parents:
5042706
Message:

xtui: Use dup2 instead of close + dup

fixes dialog ui with python 3.4
in python 3.4 dup2 crates inheritable fd, dup does not
Tested python 2.7, 3.4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/xtui.py

    r5042706 r99d8c82  
    3939        pid = os.fork()
    4040        if (not pid):
    41                 os.close(2)
    42                 os.dup(outdesc)
     41                os.dup2(outdesc, 2)
    4342                os.close(indesc)
    4443               
Note: See TracChangeset for help on using the changeset viewer.