Skip to content

Web server example can't be killed unless you use kill -9 #434

@hoisie

Description

@hoisie
What steps will reproduce the problem?
1. Run the web server code from effective go - 
http://gopaste.org/view/f6O0f
2. Try to kill the program (with ctl+c or sending kill signals like 2 or 
15)
3. It won't die unless you send a kill -9
4. If you send a signal 3, there's a weird error and a stack trace. 

What is the expected output? What do you see instead?
The web server should exit cleanly when it receives signals like 2 or 15. 

What is your $GOOS?  $GOARCH?
linux/386

Which revision are you using?  (hg identify)
fbe65e98a893+ tip

Please provide any additional information below.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions