Elixir Blog Posts

You should check for the closure of stdin to detect the parent closing the port. E.g. that’s how the bun package does it: bun/priv/wrapper.js at main · crbelaus/bun · GitHub