ijpiantanida / talkback

A simple HTTP proxy that records and playbacks requests
MIT License
283 stars 41 forks source link

Cleanly exit (child) process when receiving a signal #88

Closed unstubbable closed 5 months ago

unstubbable commented 5 months ago

This is especially important when the talkback server is started as a child process, e.g. via tsx watch. Then the parent process will wait for the exit callback, see https://github.com/privatenumber/tsx/blob/50d81944b1a2ced81f0c4a575f18df340d56ec38/src/watch/index.ts#L122 for example.

ijpiantanida commented 5 months ago

Thank you @unstubbable