Fixed bug #45144: Does not work on Solaris "zone" containers.

This commit is contained in:
Ole Tange 2015-05-20 22:37:10 +02:00
parent 87951b34d1
commit 03a69b38ce

View file

@ -3707,6 +3707,10 @@ sub which {
::debug("init", "shell path $shellpath\n");
$shellpath and last;
}
if($testpid == $parent_of_ref->{$testpid}) {
# In Solaris zones, the PPID of the zsched process is itself
last;
}
$testpid = $parent_of_ref->{$testpid};
}
return $shellpath;