processes or threads

Salvatore D'Angelo (SDANGELO@it.ibm.com)
Thu, 16 Jan 2003 16:33:27 +0100


Hi all,

Can someone of you tell me if there is a way to understand (in user space
through proc filesystem) if a thread (or process) has been created using a
fork or a clone. I am writing a small library that parse the proc
filesystem to get all the processes currently in execution.

The problem is that the client application need only the processes created
with the fork system call.

I tried to understand the solution looking at the linux source code and
making a search on the MARC mail list but I haven't found the solution.

Thanks in advance for any suggestions.

PS

I am not subscribed to this mail list, so please when reply put my address
in cc.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/