Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying out different Python web-microframeworks, such as cherrypy and flask (under Mac OSX).

When I end the process with CTRL+Z usually the processes lives on. Why does the shutdown signal not kill the process? I have to sudo kill it and restart.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Ctrl-Z, is suspend. You want Ctrl-C, interrupt. From Unix signal wikipedia:

  • Ctrl-C (in older Unixes, DEL) sends an INT signal (SIGINT); by default, this causes the process to terminate.
  • Ctrl-Z sends a TSTP signal (SIGTSTP); by default, this causes the process to suspend execution.
share|improve this answer
    
cool, thx. glad I asked. –  RParadox Nov 22 '12 at 2:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.