Skip to content

Expose termination signal option in clone #343

Closed
@tailhook

Description

@tailhook

I'm talking about this commit:
53cae89

The issue is that according to a man page you need to mix a signal name to a flags in clone function, like this:

pid = clone(childFunc, stackTop, CLONE_NEWUTS | SIGCHLD, argv[1]);

But with bitflags you can't do it. E.g. CloneFlags::from_bits(SIGCHLD) returns None.

Any good idea how to fix it? Revert the commit?

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