OpenBSD build, no waitid(2)
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
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.