We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b893744 commit 26829ffCopy full SHA for 26829ff
mssqlscripter/main.py
@@ -105,7 +105,11 @@ def main(args):
105
sql_tools_client.shutdown()
106
tools_service_process.kill()
107
# 1 second time out, allow tools service process to be killed.
108
- time.sleep(1)
+ time.sleep(.1)
109
+ # Close the stdout file handle or else we would get a resource warning (found via pytest).
110
+ # This must be closed after the process is killed, otherwise we would block because the process is using
111
+ # it's stdout.
112
+ tools_service_process.stdout.close()
113
# None value indicates process has not terminated.
114
if not tools_service_process.poll():
115
sys.stderr.write(
0 commit comments