http://www.freebsd.org/cgi/man.cgi?query=pdfork
That said, if you're writing an app you might be able to go higher level and use XPC services, which can be much less pain.