06:05 PM · Nov 06 ,2025 Go Exec 殭屍與孤兒進程 原文地址:Go Exec 殭屍與孤兒進程 最近,使用 golang 去管理本地應用的生命週期,期間有幾個有趣的點,今天就一起看下。 場景一 我們來看看下面兩個腳本會產生什麼問題: 創建兩個 shell 腳本 start.sh #!/bin/sh sh sub.sh sub.sh #!/bin/sh n=0 while [ $n -le 100 ] do echo $n let exec , go , 進程 , unix