[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kdesrc-build/make_it_mojo] modules/ksb: mojo: Make sure status server file is unlinked on abnormal
From: Michael Pyne <null () kde ! org>
Date: 2018-04-09 4:34:39
Message-ID: E1f5OVr-0003Bg-Sa () code ! kde ! org
[Download RAW message or body]
Git commit f71ea57f70b8a3af5d271a99ae5129b160280114 by Michael Pyne.
Committed on 09/04/2018 at 02:30.
Pushed by mpyne into branch 'make_it_mojo'.
mojo: Make sure status server file is unlinked on abnormal exit.
M +5 -0 modules/ksb/Application.pm
https://commits.kde.org/kdesrc-build/f71ea57f70b8a3af5d271a99ae5129b160280114
diff --git a/modules/ksb/Application.pm b/modules/ksb/Application.pm
index c37cb82..272b2f9 100644
--- a/modules/ksb/Application.pm
+++ b/modules/ksb/Application.pm
@@ -713,6 +713,11 @@ sub finish
my $ctx = $self->context();
my $exitcode = shift // 0;
+ # This is created even under --pretend, make sure it's removed
+ my $run = $ENV{XDG_RUNTIME_DIR} // 'tmp';
+ my $path = "$run/kdesrc-build-status-server";
+ unlink $path if -e $path;
+
if (pretending() || $self->{_base_pid} != $$) {
# Abort early if pretending or if we're not the same process
# that was started by the user (e.g. async mode, forked pipe-opens
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic