Skip to content
  • yuuji.yaginuma's avatar
    2a6852c6
    Correctly kill the server started with ujs test · 2a6852c6
    yuuji.yaginuma authored
    `Kernel.#spawn` execute command via the shell if contains shell
    metacharacters in the command.
    In that case, return value of `spawn` is pid of the shell, not the server.
    Therefore, just killing the pid will leave the process of server.
    
    In order to correctly kill the server, send a signal to the process
    group, not the process.
    2a6852c6
    Correctly kill the server started with ujs test
    yuuji.yaginuma authored
    `Kernel.#spawn` execute command via the shell if contains shell
    metacharacters in the command.
    In that case, return value of `spawn` is pid of the shell, not the server.
    Therefore, just killing the pid will leave the process of server.
    
    In order to correctly kill the server, send a signal to the process
    group, not the process.
Loading