ksh brings new process for every new shell invoked from it?
Issue
-
The parent process for a script does not die in RHEL 6.5. This behavior is different as compared to RHEL 5.9.
In 5.9 the parent process exits after making the call to the child process. -
The run.sh calls, spin.sh and spin.sh calls runner.sh.
All three process id's are alive, where as in RHEL 5.9 only runner.sh is alive in the end.
We are trying to understand why there is a change in the behavior on RHEL 6.5 and how can we configure the kernel
to exhibit the same behavior as RHEL 5.9
This is causing issues to one of our critical applications after migrating to RHEL 6.5 platform.
Mar 11 13:22 run.sh
Mar 11 13:33 spin.sh
Mar 14 09:38 runner.sh
[root@totlxfidevsp501 rhel6problems]# more run.sh
#!/bin/ksh
./runner.sh
[root@totlxfidevsp501 rhel6problems]# more runner.sh
#!/bin/ksh
#/apps/software/java/jdk1.8.0_20/bin/java Spinner
./spin.sh
[root@totlxfidevsp501 rhel6problems]# more spin.sh
#!/bin/ksh
while [ 1 ]
do
echo spinning.
sleep 2
done
Environment
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
