Skip to content

OpenBSD build, no waitid(2) #18

Open

Description

@Socolin

Hi,

I'm trying to build Criterion on OpenBSD and I'm stuck on build of BoxFort because there is no waitid(2) on OpenBSD
https://github.com/diacritic/BoxFort/blob/master/src/sandbox-posix.c#L161
https://github.com/diacritic/BoxFort/blob/master/src/sandbox-posix.c#L173

Is there any workaround I could try to do the same things without this syscall ? If you can explain me what this is supposed to do I can try to find something.

Regards

Activity

  1. Snaipe commented on Feb 19, 2018

    @Snaipe
    Owner

    waitid(2) is mainly use to check whether a child is ready to be reaped without reaping it now, using WNOWAIT (and leaving that up to a later wait syscall). It could be emulated using waitpid and a queue, queueing the element for a later call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions