Process creation & deletion notification

From: Kevin Fox
Date: Thu Oct 01 2009 - 13:03:17 EST


Is there a reliable way for a user space application to get
notifications every time a process is created and deleted?

I have been playing with the Connector code + PROC_EVENTS and it seems
to do what I want, but I'm not sure about two things:

1. Will the creations and deletions ever come out of order. I need a
childs creation to always come before a its parents deletion.
2. Will it ever drop a creation or deletion message. I depend on getting
every creation/deletion.

If the Connector code using PROC_EVENTS can't meet those requirements,
could someone please recommend something else to use?

Thanks,
Kevin



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