forked, background processes can prevent "snap remove" with unhelpful message

Bug #1587676 reported by Chad Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned

Bug Description

Imagine a snapped program forking off a child to do work and before it exits, the user asks to remove the package.

snapd could "lsof" to find processes beneath the mounted snap package and kill it after a Y/N prompt.

Right now, it complains that the zucchini is quite busy. Or maybe something about squashes. That implementation detail shouldn't be exposed to users.

Revision history for this message
Seth Arnold (seth-arnold) wrote :

Perhaps cgroups or systemd sessions would be more reliable than lsof: https://github.com/systemd/systemd/blob/master/NEWS#L29

Revision history for this message
Michael Vogt (mvo) wrote :

This is fixed now, we do lazy umount which prevents this kind of error.

Changed in snappy:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.