tursodatabase / turso-cli

Command line interface to Turso.
https://turso.tech
MIT License
228 stars 37 forks source link

wait for sqld process in the dev mode in order to capture unexpected exists (crashes, etc) #903

Closed sivukhin closed 3 months ago

sivukhin commented 3 months ago

Context

turso dev doesn't wait for sqld process and if it crashes (which is rare situation but still) - dev mode will continue to work and will return an error only when user will try to interrupt it:

could not kill sqld: signal: segmentation fault (core dumped)

This PR concurrently waits for process to finish and for interruption signal in order to make crashes more obvious:

Error: sqld exited unexpectedly: signal: segmentation fault (core dumped)