Skip to content

Request: forward all (well, most) signals to child processΒ #240

@brettdh

Description

@brettdh

I recently upgraded a Pyinstaller-built program to use Python 3.11. This resulted in the binary using a newer version of glibc than the target platform supported, which led me to discover staticx, without which this effort would be rather doomed. So first things first - thank you for building this. πŸ™‚

Back when I first started using Pyinstaller, I noticed that most signals were not being forwarded to the child process. In particular, my program uses a somewhat arbitrary signal number to control the logging level of the child process. A more commonly-used example would be SIGHUP, which is often used to ask a daemon to reload its configuration from disk.

I made a change to the Pyinstaller bootloader back in 2018 whereby it forwards all signals (except SIGCLD/SIGCHLD, because they're special) to the child process. I think something similar would work for staticx's (grammar...? πŸ˜… ) bootloader, but I haven't had a chance to try it out yet.

I might get some time to put together a PR for this, but I wanted to first open this issue so as to:

  1. get your feedback on the idea; and
  2. give you the chance to maybe get to it before I do 😁

Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions