[BusyBox] Fwd: Killing a non-existent pid throws me out of my login session

Steve Rodgers hwstar at cox.net
Wed May 21 02:50:56 UTC 2003


I wonder if anyone has experienced the anomaly below and if so what did you
 do to fix it. I'm running kernel 2.4.20, uclibc 0.9.19, tinylogin 1.4, and
 busybox 0.60.5. The target system is an X86 Technologic Systems TS-5300




BusyBox v0.60.5 (2003.05.20-03:42+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

# kill 100
kill

Welcome to Linux 2.4-Embedded

hactrlr.skrodgerslmca.org login:

!!!

I've included some output from df, and free, and also the contents of my
/etc/inittab and /etc/rc.sysinit files.

---

df output:

# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    9677      4659      4518  51% /
/dev/ram0                 9677      4659      4518  51% /

free output:

                 total         used         free       shared      buffers
Mem:        30804        14876        15928            0          132
Swap:            0            0            0
Total:        30804        14876        15928
#


/etc/inittab:

#
# /etc/inittab    For a small embedded linux
#                 by Adi Linden, adi at adis.on.ca
#

# System initialization.

#Uncomment if sysinit output is to be printed to console
console::sysinit:/etc/rc.sysinit

# Run gettys

#Uncomment for login on ttyS1
console::respawn:/sbin/getty 9600 ttyS1


/etc/rc.sysinit:

#!/bin/sh
#
# /etc/rc.sysinit
#
#
export PATH=/sbin:/usr/sbin:/bin:/usr/bin
export TZ=PST8PDT

havenet=0
# Set the clock from hardware
hwclock --directisa --hctosys

# mount proc file system
mount -t proc proc /proc
if [ $? -ne 0 ]
then
        echo "Cannot mount proc file system!"
fi

# remount root file system as RW
mount /dev/ram0 / -o remount,rw
if [ $? -ne 0 ]
then
       echo "Cannot remount root filesystem as RW!"
fi

# Dump kernel ring buffer
dmesg > /var/log/dmesg

# UML boot?

uname -r | grep -q um
notuml=$?

if [ $notuml -ne 0 ]
then
        echo "Initializing ttyS2..."
        setserial /dev/ttyS2 port 0x3E8 irq 6
        if [ $? -ne 0 ]
        then
                echo "Cannot initialize ttyS2"
        else
               echo "OK"
        fi

        echo "Initializing ttyS3..."
        setserial /dev/ttyS3 port 0x2E8 irq 5
        if [ $? -ne 0 ]
        then
                echo "Cannot initialize ttyS3"
        else
                echo "OK"
        fi
fi
echo -n "Starting system logger..."
# start system logger
syslogd -m0
if [ $? -ne 0 ]
then
        echo "Cannot start syslogd!"
else
        echo "OK"
fi

echo "Configuring lo..."
ifconfig lo 127.0.0.1
route add -host 127.0.0.1 lo

if [ $notuml -ne 0 ]
then
        echo "Configuring eth0 for DHCP..."
        udhcpc --now --script=/etc/udhcpc/dispatch
        if [ $? -ne 0 ]
        then
                echo "Cannot get an IP address, network interface will be
down!"        else
                havenet=1
        fi
else
        ifconfig eth0 192.168.17.3 up
        route add default gw 192.168.17.3
        havenet=0
fi

sleep 1

echo -n "Setting system time from network..."
rdate -s linuxserver
if [ $? -ne 0 ]
then
        echo "FAILED!"
else
        echo "OK"
fi

echo -n "Starting cron..."
cron
if [ $? -ne 0 ]
then
        echo "FAILED!"
else
        echo "OK"
fi

if [ $havenet -eq 1 ]
then
        echo -n "Starting utelnetd..."
        utelnetd -d
        if [ $? -ne 0 ]
        then
                echo "FAILED!"
        else
                echo "OK"
        fi

        echo -n "Starting upgrdsysd..."
        upgrdsysd
        if [ $? -ne 0 ]
        then
                echo "FAILED!"
        else
                echo "OK"
        fi


        echo -n "Starting boa..."
        boa
       if [ $? -ne 0 ]
        then
                echo "FAILED!"
        else
                echo "OK"
        fi


        echo -n "Starting hand..."
        hand
        if [ $? -ne 0 ]
        then
                echo "FAILED!"
        else
                echo "OK"
        fi

        echo -n "Starting ppower..."
        ppowerd
        if [ $? -ne 0 ]
        then
                echo "FAILED!"
        else
               echo "OK"
        fi

else
        echo "WARNING: Skipped starting network services"
fi
sleep 1
if [ $notuml -eq 0 ]
then
        sh
        poweroff
fi



exit 0




































e

-------------------------------------------------------



More information about the busybox mailing list