eina: actually check the pid only if we fail with main loop check.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Jun 2012 07:58:11 +0000 (07:58 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Tue, 12 Jun 2012 07:58:11 +0000 (07:58 +0000)
commit3609253309d8760b89c02b5d1ca53a2dd80dd0e9
tree80ba65289db785747a258179018f08835bcd412a
parent416a548d3af7f1df723ffd70fb7276215361e52b
eina: actually check the pid only if we fail with main loop check.

NOTE: If we are out of luck this test can work after a fork, but most
of the time it will be correct and cost nothing, instead of costing
a syscall.

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@71988 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/lib/eina_main.c