Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression in Lua scriptlet runaway child detection
Commit a810765 moved the detection to parent using waitpid(), but this causes it to complain on any process in the same process group. In the usual rpm context we don't have any, but we can't very well tell API users not to have any children. And then failed to detect a runaway Lua child in one of our own tests. Uff. rpmlog() in the child has the issues mentioned in the originating commit, but that's a problem that needs to be solved elsewhere. Revert back to issuing a warning when we actually *are* in the child process, so there are no false positive possible. Use EXIT_FAILURE like in the original version, dunno why I'd changed that. Update the rpmlua test to expect the deserved warning, and use stdio for printing its "normal" output, the catch there is that we need to flush the io in the child. Reported at https://bugzilla.redhat.com/show_bug.cgi?id=2254463
- Loading branch information