implemented a check for the status of a process that works in win32 and ...

...linux