LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 948|回复: 0

关机错误,Killing all remaining processes ... failed

[复制链接]
发表于 2008-4-28 22:51:19 | 显示全部楼层 |阅读模式
这个问题实在是郁闷。
今天看了下/etc/init.d/sendsigs,里面的程序有这么一段
        for seq in 1 2 3 4 5 6 7 8 9 10; do
                # use SIGCONT/signal 18 to check if there are
                # processes left.  No need to check the exit code
                # value, because either killall5 work and it make
                # sense to wait for processes to die, or it fail and
                # there is nothing to wait for.

                if killall5 -18 $OMITPIDS ; then
                    :
                else
                    alldead=1
                    break
                fi

                sleep 1
        done
        if [ -z "$alldead" ] ; then
       if [ -z "$alldead" ] ; then
            log_action_begin_msg "Killing all remaining processes"
            killall5 -9 $OMITPIDS # SIGKIL
            log_action_end_msg 1
        else
            log_action_begin_msg "All processes ended within $seq seconds."
            log_action_end_msg 0
        fi
}

看样子应该是killall5 -18 $OMITPIDS一直返回非0了。不知道为啥。。。我就升了下级,没装什么新软件包。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表