Skip to content

The server never closes, even after ^C and closing the terminal #1489

Closed
@nebrelbug

Description

@nebrelbug
  • Operating System: Windows 10
  • Node Version: 8.9.0
  • NPM Version: 6.3.0
  • webpack Version: 4.17.1
  • webpack-dev-server Version: 3.1.7
  • This is a bug
  • This is a modification request

Code

  // webpack.config.js
  ...
 devServer: {
    contentBase: path.join(__dirname, '')
 },

Expected Behavior

When I press ^C, the server stops

Actual Behavior

The server keeps on running! I'm on Git Bash, and even when I close the terminal, the server is still running. I ran it on localhost:9000, localhost:9003, and localhost:8081, and I can access the server on all 3 of them, even though I tried to end localhost:9000 and localhost:9003

For Bugs; How can we reproduce the behavior?

Try and close the server in Git Bash

For Features; What is the motivation and/or use-case for the feature?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions