This message was deleted.
# general
m
This message was deleted.
s
what do you want it to listen for exactly?
maybe just write a small wrapper script, depending on what you want to do?
g
I just want it to terminate when STDIN terminates
s
what should it do before it terminates?
g
Nothing, just quit 🙂
I have it running as a tunnel
s
ok that was the question 😅
g
Ah, gotcha, read it another way
s
is phoenix closing stdin to signal that the watcher should quit? why is it not sending SIG_INT or SIG_TERM or similar signals?
that would work
g
No idea, likely a responsibility/architecture thing, they explain it more here https://hexdocs.pm/elixir/Port.html#module-zombie-operating-system-processes (I know there's a wrapper script, but that's not ideal) 🙂