Agreed to do the polyfill of `os.waitstatus_to_exitcode()` as a separate issue so that we can land this and unbreak main. _Originally posted by @allisonkarlitskaya in https://github.com/cockpit-project/cockpit/issues/22913#issuecomment-3949717954_