We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 037c2ee commit 7d35dadCopy full SHA for 7d35dad
asprocess/asprocess.go
@@ -98,6 +98,12 @@ func (v *aspContext) InstallSignals() {
98
func (v *aspContext) WatchParent() {
99
ppid := os.Getppid()
100
101
+ // If parent is 1 when start, ignore.
102
+ if ppid == 1 {
103
+ ol.T(v.ctx, "ignore parent event for ppid is 1")
104
+ return
105
+ }
106
+
107
go func() {
108
for {
109
if pid := os.Getppid(); pid == 1 || pid != ppid {
@@ -126,6 +132,12 @@ type aspContextNoExit struct {
126
132
func (v *aspContextNoExit) WatchParent() {
127
133
128
134
135
136
137
138
139
140
129
141
130
142
131
143
0 commit comments