Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenBSD build, no waitid(2) #18

Open
Socolin opened this issue Feb 17, 2018 · 1 comment
Open

OpenBSD build, no waitid(2) #18

Socolin opened this issue Feb 17, 2018 · 1 comment

Comments

@Socolin
Copy link

Socolin commented Feb 17, 2018

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

@Snaipe
Copy link
Owner

Snaipe commented Feb 19, 2018

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants