Opened 7 years ago

Closed 7 years ago

#15159 closed (wontfix)

createsuperuser can't be interrupted or suspended

Reported by: Paul Winkler Owned by: nobody
Component: Core (Management commands) Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


To reproduce:

  • createsuperuser
  • enter an email address
  • at the password prompt, change your mind and hit Ctrl-C
  • that doesn't work, try Ctrl-Z
  • that doesn't work either, you just keep getting prompted

Workaround is to kill from another terminal or ssh session.

Change History (5)

comment:1 Changed 7 years ago by John Anderson

You can use Ctrl+d to interrupt this prompt. Ctrl+d sends EOF. This is the only way to interrupt it since the special way getpass has to modify the terminal to disable echo. This isn't a bug.

comment:2 Changed 7 years ago by Russell Keith-Magee

Triage Stage: UnreviewedAccepted

It's is a bug; a command line tools should obey SIGINT.

comment:3 Changed 7 years ago by mmcnickle

If it's a bug, it's an upstream python bug. The python UNIX implementation of getpass() seems to actively suppress SIGINTs though the windows implementation seems to allow it

comment:4 Changed 7 years ago by mmcnickle

There is a very recent upstream bug report for this:

comment:5 Changed 7 years ago by Russell Keith-Magee

Resolution: wontfix
Status: newclosed

Given that this is an upstream bug, and fixing it will be a non-trivial task, I'm going to mark this wontfix.

Of course, if someone finds a trivial workaround, feel free to reopen and provide that patch.

Note: See TracTickets for help on using tickets.
Back to Top