crbelaus/bun

Stopping `phx.server` doesn't stop bun

LostKobrakai opened this issue · 5 comments

bun needs to be stopped when the parent beam vm stops.

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.

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.

In my own tests #5 fixes this issue. Could you check if it fixes it for you as well @LostKobrakai ?

Works here as well.

Great! Will submit a new version of the library this weekend with the fix. In the meanwhile it is already available in master.