Show More
@@ -388,12 +388,18 b' class IPClusterApp(ApplicationWithClusterDir):' | |||||
388 | # Here I exit with a unusual exit status that other processes |
|
388 | # Here I exit with a unusual exit status that other processes | |
389 | # can watch for to learn how I existed. |
|
389 | # can watch for to learn how I existed. | |
390 | self.exit(ALREADY_STOPPED) |
|
390 | self.exit(ALREADY_STOPPED) | |
391 | sig = config.Global.signal |
|
391 | else: | |
392 | self.log.info( |
|
392 | if os.name=='posix': | |
393 | "Stopping cluster [pid=%r] with [signal=%r]" % (pid, sig) |
|
393 | sig = config.Global.signal | |
394 | ) |
|
394 | self.log.info( | |
395 | os.kill(pid, sig) |
|
395 | "Stopping cluster [pid=%r] with [signal=%r]" % (pid, sig) | |
396 |
|
396 | ) | ||
|
397 | os.kill(pid, sig) | |||
|
398 | elif os.name='nt': | |||
|
399 | # As of right now, we don't support daemonize on Windows, so | |||
|
400 | # stop will not do anything. Minimally, it should clean up the | |||
|
401 | # old .pid files. | |||
|
402 | self.remove_pid_file() | |||
397 |
|
403 | |||
398 | def launch_new_instance(): |
|
404 | def launch_new_instance(): | |
399 | """Create and run the IPython cluster.""" |
|
405 | """Create and run the IPython cluster.""" |
General Comments 0
You need to be logged in to leave comments.
Login now