Sept. 14, 2015
12:08 p.m.
On 14 Sep 2015, at 11:12, Skip Lentz <skip.lentz@inria.fr> wrote:
On Sep 14, 2015, at 11:04 AM, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Hi,
Is there a way to get the operating system PID of the running Pharo VM from inside the image ?
If Iâm not mistaken, it is what OSProcess is for. I think this should be it:
OSProcess thisOSProcess pid.
The comment of thisOSProcess says:
"Answer a single instance of the class corresponding to the OS process in which this Smalltalk image is executing."
OK, that seems to works in Pharo 5. Thanks. I don't know the overall status of OSProcess in Pharo though. Is is 100% supported in all current versions, 3.0, 4.0 and 5.0 ? Is it based on a plugin or on native boost ? Should it be included by default ?