HOFFMANN Marcel wrote:
Hi , to all Lilux Users,
We have migrated some of our AIX and Solaris Programs to Linux with some
success. We are
hitting only smaller "features" like this one where we find no real
explanations , even by googling.
So the problem is when we kill one process all the processes of the user
are killed. But to make it
more complicated not all the time , so it is not reproductible.
If someone knows a hint to this ....
Thanks in advance
Hoffmann Marcel
There is one tool which is very useful to find out what is going on: strace.
You trace the target process as follows (example 14979)
strace -p 14979
Then you kill the parent (or whatever ancestor).
Strace should then show you which system calls 14979 performed
last/which signals it got...
Possible theories are as follows:
1. Process got a SIGHUP because its shell got killed
2. Terminal session was closed (because shell went away), and process
was killed when it attempted to write to/read from the
no-longer-existant controlling terminal
The whole thing is rather mysterious however, as the process 14978 has
been launched by two layers of shell (14975 and 14976) in addition to
the scripts (lanceMonitor.sh and processMonitor.sh)
Or could it be that both thee 14976 shell and lanceMonitor.sh have
been launched using exec or some other weird way?
Alain