ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
alexherbo2 has quit [Ping timeout: 260 seconds]
taupiqueur has quit [Ping timeout: 264 seconds]
<FromGitter> <skinnyjames> Is there a way to kill off a process and all of it's children given a PID? ⏎ sending `Signal::KILL` doesn't seem to do it.
ur5us has quit [Ping timeout: 260 seconds]
<FromGitter> <naqvis> you need to send `SIGTERM` to kill process tree. So it should be `Signal::TERM` instead
jmdaemon has joined #crystal-lang
<FromGitter> <skinnyjames> Ah, thanks!
<FromGitter> <skinnyjames> Would you also happen to know why: ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ Won't pipe output from `test_server.rb` to `./some/log/file` from `Process.new` with shell as true, but does when I run it in a shell? [https://gitter.im/crystal-lang/crystal?at=63bb9ac23b37dd2c116e40b3]
<FromGitter> <naqvis> variables expansions is handled by SHELL, so don't believe you can have that variable expansion via the API
<FromGitter> <naqvis> you will have to perform the expansion yourself
<FromGitter> <naqvis> so instead of doing `${@}` you will have to provide the arguments when you perform `Process.new`
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 256 seconds]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 246 seconds]
<FromGitter> <skinnyjames> Ah yeah, I think when I provide them as one string, it creates 2 processes (a shell and a ruby one). I can stop the returned PID with TERM/KILL/STOP, but it leaves a dangling ruby process
<FromGitter> <skinnyjames> Ah, i think I got it now. ⏎ ⏎ 1) it has to be one string ⏎ 2) piping output creates different processes in the same group ⏎ 3) Process.signal(Signal::STOP, -Process.pgid(pid)) appears to stop the group [https://gitter.im/crystal-lang/crystal?at=63bbb8bdbe2c3c20c73d8b68]
hightower2 has quit [Remote host closed the connection]
Elouin has quit [Read error: Connection reset by peer]
Elouin has joined #crystal-lang
hightower2 has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Remote host closed the connection]
jmdaemon has quit [Ping timeout: 265 seconds]
hightower2 has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #crystal-lang
hightower2 has joined #crystal-lang
_ht has joined #crystal-lang
Sankalp has quit [Ping timeout: 260 seconds]
Sankalp has joined #crystal-lang
riza has quit [Quit: riza]
riza has joined #crystal-lang
jmdaemon has joined #crystal-lang
ur5us has joined #crystal-lang
_ht has quit [Quit: _ht]
hightower3 has joined #crystal-lang
hightower2 has quit [Ping timeout: 272 seconds]