[ISSUE-30478] Release cache dir lock acquired by a command on sigint or sigterm (#52194)
This commit is contained in:
@@ -622,6 +622,7 @@ abstract class FlutterCommand extends Command<void> {
|
||||
|
||||
void _registerSignalHandlers(String commandPath, DateTime startTime) {
|
||||
final SignalHandler handler = (io.ProcessSignal s) {
|
||||
Cache.releaseLockEarly();
|
||||
_sendPostUsage(
|
||||
commandPath,
|
||||
const FlutterCommandResult(ExitStatus.killed),
|
||||
|
||||
Reference in New Issue
Block a user