(Resending this to the list, as i hit the wrong button in my mail client :( )

(I did not read the whole backlog)

Little tips

i) read the documentation of ECORE_EXE_EVENT_DEL. It is sent for EVERY child that exists, isnt it possible that somehow the wrong pid sneaked into the kill call and thus you are getting the event for the xserver ?

ii) is entrance_client really existing ? looks like the xserver died before the child died, i would not wonder if that causes some confusion that leaves some x call stuck on a lock or something.


On 04/10/2018 03:04 AM, William L. Thomson Jr. wrote:
On Sun, 8 Apr 2018 13:50:14 +0900
Carsten Haitzler (The Rasterman) <ras...@rasterman.com> wrote:

so either it's a different uid  (setuid?),

Seems this is part of the problem, likely due to setuid/setgid. The pid
returned from ecore_exe_pipe_run is not the same as when
ECORE_EXE_EVENT_DEL callback gets fired. The callback event ends up with
the pid for X.

INF<9579>:entrance ../src/daemon/entrance.c:296 _entrance_main() 
entrance_client started pid 9587
INF<9579>:entrance ../src/daemon/entrance.c:310 _entrance_client_del() ev->pid 
9586

9579 root     root     /usr/sbin/entrance
9586 root     root     /usr/bin/X -nolisten tcp -br vt7
9587 root     root     /bin/bash -c export HOME=/home/travis; export USER=travi
9588 travis   travis   /usr/lib/x86_64-linux-gnu/entrance/entrance_client -d :0

I assume I need to register the entrance_client pid with entrance.
Need to have the right handle/pid for calling ecore_exe_terminate.



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to