implemented a check for the status of a process that works in win32 and linux
turn process_lives into a private coderef

the test script needs its own copy of the coderef,
because it is private