Skip to content

Commit c8c9376

Browse files
committed
fix(npm): child process exits gracefully on SIGxxx
Signed-off-by: Marc Nuri <[email protected]>
1 parent 29b65fd commit c8c9376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/http/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func Serve(ctx context.Context, mcpServer *mcp.Server, staticConfig *config.Stat
8484
defer cancel()
8585

8686
sigChan := make(chan os.Signal, 1)
87-
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGTERM)
87+
signal.Notify(sigChan, syscall.SIGINT, syscall.SIGHUP, syscall.SIGTERM)
8888

8989
serverErr := make(chan error, 1)
9090
go func() {

0 commit comments

Comments
 (0)