Stopping `phx.server` doesn't stop bun
LostKobrakai opened this issue · 5 comments
LostKobrakai commented
bun
needs to be stopped when the parent beam vm stops.
crbelaus commented
Thanks for this report.
I am able to reproduce this, but at the moment I am not sure how to fix it. Will keep investigating until I find a solution.
LostKobrakai commented
This documents the behaviour: https://hexdocs.pm/elixir/main/Port.html#module-zombie-operating-system-processes
The solution is to either make bun close when stdin is closed or put some script inbetween to do so.
crbelaus commented
In my own tests #5 fixes this issue. Could you check if it fixes it for you as well @LostKobrakai ?
LostKobrakai commented
Works here as well.
crbelaus commented
Great! Will submit a new version of the library this weekend with the fix. In the meanwhile it is already available in master.