fork + exec + caller should not wait for child

前端 未结 2 1232
挽巷
挽巷 2021-01-21 09:26

I have two scripts script_a and script_b. script_a calls script_b. script_b forks two processes. As shown below.

script_a waits for both the parent and child of script_b

2条回答
  •  独厮守ぢ
    2021-01-21 09:56

    `` backticks in perl wait for the command to complete. So if you don't want parent process to wait put in sytem(command &) in background.

提交回复
热议问题