Skip to content

Commit

Permalink
Ensuring stdin_windows is always removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Valloric committed Jul 2, 2015
1 parent 6eb412f commit bfcfa21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ycmd/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ def SafePopen( *args, **kwargs ):
# We need this to start the server otherwise bad things happen.
# See issue #637.
if kwargs.get( 'stdin_windows' ) is subprocess.PIPE:
del kwargs[ 'stdin_windows' ]
kwargs[ 'stdin' ] = subprocess.PIPE
# Do not create a console window
kwargs[ 'creationflags' ] = CREATE_NO_WINDOW

kwargs.pop( 'stdin_windows', None )
return subprocess.Popen( *args, **kwargs )

0 comments on commit bfcfa21

Please sign in to comment.