[LLVMdev] [PATCH 2/2] Make Program::ExecuteNoWait return a process ID.
foldr at codedgers.com
Fri Jul 17 14:01:15 PDT 2009
Daniel Dunbar <daniel <at> zuster.org> writes:
> Do you have to have it? You can't use the pid (assigned from as a
> number) without going through another llvm::sys interface, so why
> should it be exposed?
I need to invoke an external program (gcore), which takes PID as
argument. On Windows I do something platform-specific, but that
also requires access to PID.
I'm currently rewriting this patch to also remove the duplication
between ExecuteAndWait and ExecuteNoWait.
> I don't personally care too much -- and favor pragmatism -- but it is
> counter to the documented design of the system library:
A one-line GetPid() method is not so dangerous IMO.
More information about the llvm-dev