azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

`func start` on Linux won't stop upon recieving SIGTERM

Open UnknownJoe796 opened this issue 3 years ago • 4 comments

If I execute func start on Linux and then send a termination request (kill -s SIGTERM <pid>), the local runner will ignore the request.

Sending a termination signal like this should result in the program closing. Instead, the process stays open indefinitely.

Interestingly, SIGINT works just fine.

I'm running Linux and I've tested this with both a Node project and a Java project.

This is currently preventing the Azure Functions Gradle Plugin from shutting down down the azureFunctionsRun task correctly, which is a huge usability problem for that plugin. However, the root issue remains in func start.

UnknownJoe796 avatar Jun 09 '22 23:06 UnknownJoe796

Is there any update on this issue? We are getting this issue as well in our build pipelines when trying to run integration tests

robmoo avatar Aug 22 '22 14:08 robmoo

We don't have anything yet. I tried looking through the source myself to figure something out but I'm not a C# guy.

UnknownJoe796 avatar Aug 24 '22 18:08 UnknownJoe796

Just stumbled upon this same issue and opened a PR, at least for the version published on npm.

beyerleinf avatar Sep 09 '22 22:09 beyerleinf

Has anyone had time to look a this yet? I need this fix...

beyerleinf avatar Oct 06 '22 07:10 beyerleinf