Skip to content

posix: add support for <sig ../> config nodes #4984

Open
@Time0o

Description

@Time0o

This is a suggestion for a new type of libc component config nodes that cause POSIX signals to be generated in certain circumstances (for now when some file changes), the change can be found here.

This idea was motivated by the fact that some ported C applications use POSIX signals to trigger configuration file reloads or similar. E.g. mosquitto reloads configuration files on receiving SIGHUP. To avoid having to add patches when porting such applications to Genode, this change allows adding <config> nodes of the following form to libc components:

<config>
    <sig name="SIGHUP" on_file_change="/etc/my_program.config"/>
</config>

This will internally call kill with the component itself as the target when my_program.config is modified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions