From 18447505ee3caa3182c24ae99744b8a8d99a1f42 Mon Sep 17 00:00:00 2001 From: Joel Schaerer Date: Fri, 6 Mar 2009 20:43:49 +0100 Subject: [PATCH] Revert "do the PROMPT_COMMAND in the background for better performance" This reverts commit 87b188cf12d67624a354f2effa220eca783cad5e. --- autojump | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/autojump b/autojump index 5542697..04bb856 100755 --- a/autojump +++ b/autojump @@ -66,13 +66,9 @@ try: except IOError: path_dict={} -if ('-a','') in optlist: #this can be done in the background - os.nice(10) - pid=os.fork() - if not pid: - os.setsid() - dicadd(path_dict,args[-1]) - save(path_dict,dic_file) +if ('-a','') in optlist: + dicadd(path_dict,args[-1]) + save(path_dict,dic_file) elif ('--stat','') in optlist: a=path_dict.items() a.sort(key=lambda e:e[1])