Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- process test {
- input:
- val meh from Channel.from(1)
- script:
- """
- cancel() {
- echo hi
- sleep 10
- echo bye
- }
- trap cancel SIGTERM
- trap '' SIGINT SIGHUP
- sleep 100 &
- wait
- echo done
- """
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement