On 2007-04-13T11:21:04, Dejan Muhamedagic <[EMAIL PROTECTED]> wrote:
> > pid=`cat $OCF_RESKEY_pid`;
> > if [ -d /proc -a -d /proc/1 ]; then
>
> This is Linuxism. I don't see why it's needed at all.
It tried to make sure that /proc exists and is actually the mounted
proc. Weird code.
if kill -0 $pid ; then
should work across all platforms and be just fine.
Sincerely,
Lars
--
Teamlead Kernel, SuSE Labs, Research and Development
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
"Experience is the name everyone gives to their mistakes." -- Oscar Wilde
_______________________________________________________
Linux-HA-Dev: [EMAIL PROTECTED]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/