Opened 5 years ago

Closed 5 years ago

#15159 closed (wontfix)

createsuperuser can't be interrupted or suspended

Reported by: slinkp 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 5 years ago by sontek

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

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 5 years ago by russellm

  • Triage Stage changed from Unreviewed to Accepted

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

comment:3 Changed 5 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 5 years ago by mmcnickle

There is a very recent upstream bug report for this:

comment:5 Changed 5 years ago by russellm

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

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