[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mutt viewers in the background / Job control



I'm using a modification of mutt_bgrun where a .mailcap entry might be:

 image/png; /home/moseley/bin/mutt_bgrun display '%s'; test=test -n "$DISPLAY"

and mutt_bgrun is basically:

file=$(mktemp);
cp "$2" "$file"
( "$1" "$file"; rm "$file" ) &

That allows control to return to mutt while the viewer is running.  But
the viewer is still a child process of mutt, so when mutt exits the
viewer exits too.

Common question:  how do I make the viewer a child of init so that when
mutt exits it's not a zombie waiting on the viewer or closing mutt
doesn't kill the viewer?

Thanks,



-- 
Bill Moseley
moseley@hank.org



Reply to: