far2l icon indicating copy to clipboard operation
far2l copied to clipboard

Far2l executing commands (like cd /) generates zombie processes

Open LanThrusteR opened this issue 1 year ago • 2 comments

In 2.5.3 beta

4143 0.0 0.0 0 0 ? Zs Feb09 0:00 [open.sh] 11879 0.0 0.0 0 0 ? Zs Feb13 0:00 [open.sh] 22461 0.0 0.0 0 0 ? Zs 04:58 0:00 [open.sh] 25652 0.0 0.0 0 0 ? Zs Feb08 0:00 [open.sh]

if all far2l instances are closed - these zombies are gone, looks like from cd command but not sure

LanThrusteR avatar Feb 14 '24 04:02 LanThrusteR

In Ubuntu with far2l I haven't such troubles.

akruphi avatar Feb 14 '24 10:02 akruphi

In Ubuntu with far2l I haven't such troubles.

I'll try to be more specific about the conditions in which the zombee processes are created, it's not always that it happens but it happens. Something is wrong with

I guess this:

/usr/share/far2l/open.sh
`if command -v xdg-open >/dev/null 2>&1; then #GNOME
	xdg-open "$@"

elif command -v open >/dev/null 2>&1; then #OSX
	open "$@"
fi

should be replaced by

if command -v xdg-open >/dev/null 2>&1; then #GNOME
	command timeout 10  xdg-open "$@"

elif command -v open >/dev/null 2>&1; then #OSX
	command timeout 10 open "$@"
fi

or alternatively

if command -v xdg-open >/dev/null 2>&1; then #GNOME
	xdg-open "$@" &

elif command -v open >/dev/null 2>&1; then #OSX
	open "$@" &
fi

in case xdg-open fails for some reason. I would prefer timeout 10 over &

LanThrusteR avatar Feb 14 '24 14:02 LanThrusteR