git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Bug: Cannot kill Nodejs process using ctrl + c

From
Gyandeep Singh <gyandeeps@gmail.com>
Date
Jun 26, 2017, 20:45 UTC
Message-ID
<CAHaNChecHzZqzafe4P85Kz4BtJuisO+krCvm=yPW9wGMXWJK_A@mail.gmail.com>
In-Reply-To
<CAHaNChewK_4a7sPgZqWTNSmchiSbKOJUrpCrGLmcnR+cw6J5qw@mail.gmail.com>
Environment:
OS: Windows 7
Git: git version 2.13.1.windows.2
NodeJS: 8.1.2
Steps:
1. Create a js file with content
const http = require('http');
const fs = require('fs');
const port = 3000;
const app = http.createServer((req,res) => {
    res.writeHead(200);
    res.end("hi");
});
app.listen(port);
its a simple server running on 3000 port.
2. Run command "node ./app.js" inside git bash.
3. hit "CTRL + c" (2 times) to kill the process.
4. If you look at taskmanager, then you will see a node.js process
still running. or if you try to restart the server it will say port
300 already in use.
Notes:
1. This was working on first version of Git 2.13, it broke after the
first version.
Thanks
Regards,
Gyandeep Singh
Next: Stefan Beller
Message 1 of 7 in “Re: Bug: Cannot kill Nodejs process using ctrl + c”
  1. Gyandeep SinghJun 26, 2017
  2. Stefan BellerJun 27, 2017
  3. Gyandeep SinghJun 27, 2017
  4. Stefan BellerJun 27, 2017
  5. Gyandeep SinghJun 27, 2017
  6. Johannes SchindelinJun 28, 2017
  7. Johannes SchindelinJun 29, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.