I'm trying to use CFFI in order to wrap execve (2). The wrapper also uses fork (2) and wait (2). While I have absolutely no problems with execve or fork I'm stumbling on a problem with wait.
You might try a portability library such as trivial-shell. http://common-lisp.net/project/trivial-shell/
- Daniel