You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by woowahan-jaehoon <gi...@git.apache.org> on 2018/02/08 06:44:15 UTC

[GitHub] zeppelin issue #2716: [ZEPPELIN-3123] Fix to create pid per each interpreter

Github user woowahan-jaehoon commented on the issue:

    https://github.com/apache/zeppelin/pull/2716
  
    @mebelousov 
    
    1. `shutdown_hook` in `interpreter.sh` does work without `sleep 0`.
       `interpreter.sh` is finished after `shutdown_hook` when this got SIGTERM or SIGINT.
       Please check this example
       ```shell
       #!/bin/bash
      
       _term() {
         echo "Caught SIGTERM signal!"
         sleep 10
         echo "Trap finished!"
       }
    
       trap _term SIGTERM SIGINT SIGQUIT
    
       eval sleep 20 &
    
       child=$!
       wait
       echo Finished Script
       ```
       But you found wrong result with another system, please announce.
    
    2. `eval` can be removed when I tested but this is another issue with this.
        And d3d020c8a3faef00bba41617e51f7df73ee50dec commit is original, I think. ^^;;;;


---