enable killing processed in windows, thanks Yair

This commit is contained in:
mdipierro
2013-12-06 20:15:41 -06:00
parent 3a6a8af9f6
commit 0ed01e5a21
2 changed files with 5 additions and 2 deletions

View File

@@ -1 +1 @@
Version 2.8.2-stable+timestamp.2013.12.04.19.34.45
Version 2.8.2-stable+timestamp.2013.12.06.20.14.05

View File

@@ -1224,7 +1224,10 @@ end tell
if not options.nobanner:
print 'please visit:'
print '\t', url
print 'use "kill -SIGTERM %i" to shutdown the web2py server' % os.getpid()
if sys.platform.startswith('win'):
print 'use "taskkill /f /pid %i" to shutdown the web2py server' % os.getpid()
else:
print 'use "kill -SIGTERM %i" to shutdown the web2py server' % os.getpid()
# enhance linecache.getline (used by debugger) to look at the source file
# if the line was not found (under py2exe & when file was modified)