Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cherry pick of #6366: Avoid generating defunct process when starting Suricata #6375

Conversation

hongliangl
Copy link
Contributor

Cherry pick of #6366 on release-1.15.

#6366: Avoid generating defunct process when starting Suricata

For details on the cherry pick process, see the cherry pick requests page.

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]>
@hongliangl hongliangl added the kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release label May 28, 2024
@tnqn tnqn merged commit 91c25d6 into antrea-io:release-1.15 May 28, 2024
43 of 50 checks passed
@hongliangl hongliangl deleted the automated-cherry-pick-of-#6366-upstream-release-1.15 branch June 5, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/cherry-pick Categorizes issue or PR as related to the cherry-pick of a bug fix from the main branch to a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants