From 1a5cafd79d8e0499b7e5c044fdc3211e234f5b04 Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Jun 2009 18:44:12 +0200 Subject: fixed evil bug *completely* the one that keeps ranger running in the background when you use the window manager to close it (ie. clicking the X or pressing ALT+F4 or whatever means your window manager has to close a program) --- code/fm/fm.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'code/fm') diff --git a/code/fm/fm.rb b/code/fm/fm.rb index a6054052..1bf74081 100644 --- a/code/fm/fm.rb +++ b/code/fm/fm.rb @@ -117,6 +117,7 @@ module Fm def main_loop bool = false while true + exit if Process.ppid == 1 if @pwd.size == 0 or @pwd.pos < 0 @pwd.pos = 0 elsif @pwd.pos >= @pwd.size - 1 -- cgit 1.4.1-2-gfad0