Skip to content

Commit

Permalink
Merge pull request #179 from ykurlaev/fix-rpm-stdin-issue
Browse files Browse the repository at this point in the history
reopen stdin to /dev/null instead of just closing
  • Loading branch information
pixelb committed Jul 21, 2021
2 parents 7431b25 + bd62f0b commit 1002753
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fslint-gui
Expand Up @@ -575,6 +575,7 @@ class fslint(GladeWrapper):

def __init__(self, Filename, WindowName):
os.close(0) #don't hang if any sub cmd tries to read from stdin
os.open("/dev/null", os.O_RDONLY)
self.pwd=os.path.realpath(os.curdir)
GladeWrapper.__init__(self, Filename, WindowName)
self.dlgPath = dlgPath(liblocation+"/fslint.glade", "PathChoose")
Expand Down

0 comments on commit 1002753

Please sign in to comment.