Skip to content

Commit 16c169f

Browse files
committed
find nginx debug workers
1 parent 44078c0 commit 16c169f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/nginxprocess/process.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ type Process struct {
2929

3030
// IsWorker returns true if the process is a NGINX worker process.
3131
func (p *Process) IsWorker() bool {
32-
return strings.HasPrefix(p.Cmd, "nginx: worker")
32+
return strings.HasPrefix(p.Cmd, "nginx: worker") ||
33+
strings.HasPrefix(p.Cmd, "{nginx-debug} nginx: worker")
3334
}
3435

3536
// IsMaster returns true if the process is a NGINX master process.

0 commit comments

Comments
 (0)