Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid generating defunct process when starting Suricata (#6366)
When antrea-agent starts Suricata instance with the following command: ``` suricata -c /etc/suricata/suricata.yaml --af-packet -D -l /var/log/antrea/networkpolicy/l7engine/ ``` The method `Run()` of `exec.Cmd` should be used instead of `Start()` to avoid generating a zombie process. The above command will exit after starting the process of Suricata instance in the background, so using `Run()` ensures that the command's resources are properly released and no defunct process remains. Signed-off-by: Hongliang Liu <[email protected]>
- Loading branch information