[fpc-pascal] Checking Linux process existence (child or not) without OS command ?

Henry Vermaak henry.vermaak at gmail.com
Mon Sep 21 16:07:37 CEST 2009

2009/9/21 Marco van de Voort <marcov at stack.nl>:
> In our previous episode, Henry Vermaak said:
>> > Does anyone know a simple way to check if a Linux process exists/runs
>> > (child or not) *without* running an OS command via TProcess (or other)?
>> You can read all the /proc/%d/cmdline files to search for a specific process.
> While it might work, it won't port well to other unices.

Oh almost definitely not, I'm sure.  There isn't really a good reason
to do this, either, except for informational purposes.


More information about the fpc-pascal mailing list