Skip to content

wiki -- pressing control-c just starts another copy running #1871

@williamstein

Description

@williamstein

The wiki() command on OSX is broken. On Linux (at least on sage.math), hitting control-c after starting the wiki just starts it again on the next port. Very bad:

was@sage:~/tmp$ sage
----------------------------------------------------------------------
| SAGE Version 2.10, Release Date: 2008-01-18                        |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------

wiki(sage: wiki()
**************************************************
*                                                *
* Open your web browser to http://localhost:9000 *
*                                                *
**************************************************
2008/01/20 15:09 -0700 [-] Log opened.
2008/01/20 15:09 -0700 [-] twistd 2.5.0 (/home/was/s/local/bin/python 2.5.1) starting up
2008/01/20 15:09 -0700 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008/01/20 15:09 -0700 [-] Loading twistedconf.py...
2008/01/20 15:09 -0700 [-] Loaded.
2008/01/20 15:09 -0700 [-] MoinMoin.server.twistedmoin.MoinSite starting on 9000
2008/01/20 15:09 -0700 [-] Starting factory <MoinMoin.server.twistedmoin.MoinSite instance at 0x2ab6a72409e0>
2008/01/20 15:09 -0700 [-] set uid/gid 1000/1000
2008/01/20 15:11 -0700 [-] Received SIGINT, shutting down.
2008/01/20 15:11 -0700 [-] (Port 9000 Closed)
2008/01/20 15:11 -0700 [-] Stopping factory <MoinMoin.server.twistedmoin.MoinSite instance at 0x2ab6a72409e0>
2008/01/20 15:11 -0700 [-] Main loop terminated.
2008/01/20 15:11 -0700 [-] Server Shut Down.
Port 9000 is already in use.  Trying next port...
**************************************************
*                                                *
* Open your web browser to http://localhost:9001 *
*                                                *
**************************************************
2008/01/20 15:11 -0700 [-] Log opened.
2008/01/20 15:11 -0700 [-] twistd 2.5.0 (/home/was/s/local/bin/python 2.5.1) starting up
2008/01/20 15:11 -0700 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008/01/20 15:11 -0700 [-] Loading twistedconf.py...
2008/01/20 15:11 -0700 [-] Loaded.
2008/01/20 15:11 -0700 [-] MoinMoin.server.twistedmoin.MoinSite starting on 9001
2008/01/20 15:11 -0700 [-] Starting factory <MoinMoin.server.twistedmoin.MoinSite instance at 0x2b019cbb59e0>
2008/01/20 15:11 -0700 [-] set uid/gid 1000/1000
2008/01/20 15:11 -0700 [-] Received SIGINT, shutting down.
2008/01/20 15:11 -0700 [-] (Port 9001 Closed)
2008/01/20 15:11 -0700 [-] Stopping factory <MoinMoin.server.twistedmoin.MoinSite instance at 0x2b019cbb59e0>
2008/01/20 15:11 -0700 [-] Main loop terminated.
2008/01/20 15:11 -0700 [-] Server Shut Down.
Port 9000 is already in use.  Trying next port...
**************************************************
*                                                *
* Open your web browser to http://localhost:9002 *
*                                                *
**************************************************
2008/01/20 15:11 -0700 [-] Log opened.
2008/01/20 15:11 -0700 [-] twistd 2.5.0 (/home/was/s/local/bin/python 2.5.1) starting up
2008/01/20 15:11 -0700 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008/01/20 15:11 -0700 [-] Loading twistedconf.py...
2008/01/20 15:11 -0700 [-] Loaded.
2008/01/20 15:11 -0700 [-] MoinMoin.server.twistedmoin.MoinSite starting on 9002
2008/01/20 15:11 -0700 [-] Starting factory <MoinMoin.server.twistedmoin.MoinSite instance at 0x2b578a4b49e0>
2008/01/20 15:11 -0700 [-] set uid/gid 1000/1000
2008/01/20 15:12 -0700 [-] Received SIGINT, shutting down.
2008/01/20 15:12 -0700 [-] (Port 9002 Closed)
2008/01/20 15:12 -0700 [-] Stopping factory <MoinMoin.server.twistedmoin.MoinSite instance at 0x2b578a4b49e0>
2008/01/20 15:12 -0700 [-] Main loop terminated.
2008/01/20 15:12 -0700 [-] Server Shut Down.
Port 9000 is already in use.  Trying next port...
**************************************************
*                                                *
* Open your web browser to http://localhost:9003 *
*                                                *
**************************************************
...

Component: website/wiki

Author: Robert Miller

Reviewer: David Joyner

Merged: sage-4.1.alpha0

Issue created by migration from https://trac.sagemath.org/ticket/1871

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions