BoxFort icon indicating copy to clipboard operation
BoxFort copied to clipboard

OpenBSD build, no waitid(2)

Open Socolin opened this issue 6 years ago • 1 comments

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

Socolin avatar Feb 17 '18 05:02 Socolin

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.

Snaipe avatar Feb 19 '18 13:02 Snaipe