Opened 14 years ago

Closed 13 years ago

#596 closed defect (duplicate)

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

Reported by: wdj Owned by: was
Priority: minor Milestone: sage-2.10.2
Component: website/wiki Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

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@… (Randy Leveque)

Change History (9)

comment:1 Changed 14 years ago by was

  • Component changed from algebraic geometry to website/wiki

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:       

comment:2 Changed 14 years ago by mabshoff

  • Milestone changed from sage-2.9.1 to sage-2.8.6

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

comment:3 Changed 14 years ago by was

  • Milestone changed from sage-2.8.6 to sage-2.8.7

comment:4 Changed 14 years ago by was

Can anybody replicate this?

comment:5 Changed 14 years ago by was

  • Resolution set to wontfix
  • Status changed from new to closed

comment:6 Changed 14 years ago by was

  • Milestone changed from sage-2.8.7 to sage-2.9
  • Resolution wontfix deleted
  • Status changed from closed to reopened

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

comment:7 Changed 14 years ago by was

  • Milestone changed from sage-2.9.1 to sage-2.8.12

comment:8 Changed 13 years ago by mabshoff

  • Milestone changed from sage-2.10 to sage-2.9.2

comment:9 Changed 13 years ago by rlm

  • Resolution set to duplicate
  • Status changed from reopened to closed

This is duplicated in #1871.

Note: See TracTickets for help on using tickets.