On 14 Sep 2015, at 14:08, Sven Van Caekenberghe <sven@stfx.eu> wrote:
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 ?
100% Plugin yes it should :) Esteban ps: But the plugin has some problems in windows. So, it is supported 100% of the support it provides⦠so we need to improve that :P