Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage wiki() doesn't close with ctl-C #596

Closed
wdjoyner opened this issue Sep 5, 2007 · 5 comments
Closed

sage wiki() doesn't close with ctl-C #596

wdjoyner opened this issue Sep 5, 2007 · 5 comments

Comments

@wdjoyner
Copy link

wdjoyner commented Sep 5, 2007

When I execute

sage: wiki()

I get ...

* Open your web browser to http://localhost:9000
...

and it works fine. Then how do I close it cleanly?

I've tried ctrl-C in the sage window, which gives the following...
It closes that web window but then restarts the wiki.

2007/09/05 13:47 -0700 [-] Received SIGINT, shutting down.
2007/09/05 13:47 -0700 [-] (Port 9000 Closed)
2007/09/05 13:47 -0700 [-] Stopping factory
<MoinMoin.server.twistedmoin.MoinSite instance at 0x4060ebec>
2007/09/05 13:47 -0700 [-] Main loop terminated.
2007/09/05 13:47 -0700 [-] Server Shut Down.
Port 9000 is already in use.  Trying next port...
**************************************************
*                                                *
* Open your web browser to http://localhost:9001 *
*                                                *
**************************************************
2007/09/05 13:47 -0700 [-] Log opened.

etc.

Closing the webpage first doesn't help and SAGE doesn't accept any
commands
other than ctrl-C, including ctrl-D.

Apparently Ctl-C Ctl-C (twice in rapid succession) closes it.

Reported by rjleveque@gmail.com (Randy Leveque)

Component: website/wiki

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

@williamstein
Copy link
Contributor

comment:1

I can't replicate this:

sage: wiki()
**************************************************
*                                                *
* Open your web browser to http://localhost:9000 *
*                                                *
**************************************************
2007/09/05 15:49 -0700 [-] Log opened.
2007/09/05 15:49 -0700 [-] twistd 2.5.0 (/home/was/s/local/bin/python 2.5.1) starting up
2007/09/05 15:49 -0700 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2007/09/05 15:49 -0700 [-] Loading twistedconf.py...
2007/09/05 15:49 -0700 [-] Loaded.
2007/09/05 15:49 -0700 [-] MoinMoin.server.twistedmoin.MoinSite starting on 9000
2007/09/05 15:49 -0700 [-] Starting factory <MoinMoin.server.twistedmoin.MoinSite instance at 0xb9e998>
2007/09/05 15:49 -0700 [-] set uid/gid 1000/1000
2007/09/05 15:49 -0700 [-] Received SIGINT, shutting down.
2007/09/05 15:49 -0700 [-] (Port 9000 Closed)
2007/09/05 15:49 -0700 [-] Stopping factory <MoinMoin.server.twistedmoin.MoinSite instance at 0xb9e998>
2007/09/05 15:49 -0700 [-] Main loop terminated.
2007/09/05 15:49 -0700 [-] Server Shut Down.
True
sage:       

@sagetrac-mabshoff
Copy link
Mannequin

sagetrac-mabshoff mannequin commented Sep 30, 2007

comment:2

This might have been fixed by the sig off/on fix.

Retagged for 2.8.6 - if it isn't fixed yet it might get retagged again.

Cheers,

Michael

@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.9.1, sage-2.8.6 Sep 30, 2007
@williamstein williamstein modified the milestones: sage-2.8.6, sage-2.8.7 Oct 4, 2007
@williamstein
Copy link
Contributor

comment:4

Can anybody replicate this?

@williamstein
Copy link
Contributor

comment:6

I now see this on OS X 10.5 and it is easy to replicate, so I am re-opening this.

The problem somehow probably involves the codes that indicate a port is in use.

-- William

@williamstein williamstein modified the milestones: sage-2.8.7, sage-2.9 Nov 2, 2007
@williamstein williamstein reopened this Nov 2, 2007
@williamstein williamstein modified the milestones: sage-2.9.1, sage-2.8.12 Nov 3, 2007
@sagetrac-mabshoff sagetrac-mabshoff mannequin modified the milestones: sage-2.10, sage-2.9.2 Dec 29, 2007
@rlmill
Copy link
Mannequin

rlmill mannequin commented Feb 10, 2008

comment:9

This is duplicated in #1871.

@rlmill rlmill mannequin closed this as completed Feb 10, 2008
@rlmill rlmill mannequin added the r: duplicate label Feb 10, 2008
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants