do package updates automatically kill running exes?

Andrew Schulman schulman.andrew@epa.gov
Fri Aug 14 11:36:00 GMT 2015


> On 13/08/2015 20:02, Andrew Schulman wrote:
> >>> Anyway, that answers my question.  If I want to be sure a process from one of my
> >>> packages exits, I need to put a killall into its preremove script.
> >>
> >> I've put a "pkill ." in all scripts that run setup (with the requisite
> >> are you sure? y/N).
> >
> > Ugh, both psmisc (killall) and procps (pkill) aren't in base, so both of
> > those may fail.
> 
> What problem are you trying to solve here?

fish 2.2, when it comes out, will throw scary-looking errors and maybe
malfunction if any exes from fish 2.1.1 are still running.  In particular fish
2.1.1 runs fishd to share environment variables between instances.  fish 2.2
doesn't use fishd, and will throw errors if any instances of fishd are still
running.

So IMO the best option will be to killall fish in the preremove script for fish
2.1.1.  I think the cost of having to restart your shell is pretty low, and will
be better than having users puzzle through the error messages from fish 2.2.



More information about the Cygwin-apps mailing list