-
Notifications
You must be signed in to change notification settings - Fork 615
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
net: redirect nftables stdout and stderr to CRIU's log file #2549
net: redirect nftables stdout and stderr to CRIU's log file #2549
Conversation
It looks like the changes in this pull request are also applied in #2550 |
4091738
to
79b7ff0
Compare
79b7ff0
to
c079a61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ooops, I didn't mean that. Without fclose(), it introduces a memory leak, because fdopen allocates a new FILE object. Unfortunately, it is impossible to do fclose() without closing a file description. The only option is to dup a logging file descriptor and operates with a new descriptor. |
c079a61
to
fd3fea4
Compare
Thanks for the explanation. Reworked to close the FILE pointers using a |
LGTM. Thanks for working on this. |
@adrianreber could you rebase it? |
There is nothing to rebase from what I see. Nothing happens if I try to rebase locally. |
337836d
to
91e8a6f
Compare
Signed-off-by: Adrian Reber <areber@redhat.com>
When using the nftables network locking backend and restoring a process a second time the network locking has already been deleted by the first restore. The second restore will print out to the console text like: Error: Could not process rule: No such file or directory delete table inet CRIU-202621 With this change CRIU's log FD is used by libnftables stdout and stderr. Signed-off-by: Adrian Reber <areber@redhat.com>
91e8a6f
to
1ed4109
Compare
@adrianreber GitHub was showing the message |
When using the nftables network locking backend and restoring a process a second time the network locking has already been deleted by the first restore. The second restore will print out to the console text like:
With this change CRIU's log FD is used by libnftables stdout and stderr.