Hi, all.
Working from a DiskOnChip, RTOS 6.1, Pentium machine.
I have a the following script:
#!/bin/sh
#----------------------------------------->
#start random
/ram/bin/random &
if this file doesn’t exist, create some keys
don’t bother checking for the other files
if [ ! -f /etc/ssh/ssh_host_key ]; then
echo “need to generate some keys for sshd”
#create all three types just in case user requires other types
/ram/bin/ssh-keygen -q -t rsa1 -C ‘’ -N ‘’ -f ‘/etc/ssh/ssh_host_key’
/ram/bin/ssh-keygen -q -t rsa -C ‘’ -N ‘’ -f ‘/etc/ssh/ssh_host_rsa_key’
/ram/bin/ssh-keygen -q -t dsa -C ‘’ -N ‘’ -f ‘/etc/ssh/ssh_host_dsa_key’
fi
This is run at system start, from the build file.
Later, from a shell, I slay random. If I now run pidin, I can see
that where random was, there is now a zombie where random once was.
The zombie is never cleaned up (or at least not in the hour the
machine continued to run).
In this particular case, it was possible to work around the problem,
by starting random from the build file instead of from the script.
However, I can see this being a problem in other situations (eg
program A spawns program B, but A dies before B, leaving a zombie).
Can anybody tell me if this is a bug or if I’m doing something wrong?
Thanks in advance,
Kevin Lacquement
–
He that breaks a thing to find out what it is has left the path of
wisdom – Gandalf the Grey