From 99076660d45e317cdb5262c65f3446cd23f36bf0 Mon Sep 17 00:00:00 2001 From: Tamara Dahlgren <35777542+tldahlgren@users.noreply.github.com> Date: Tue, 24 Aug 2021 17:21:48 -0700 Subject: bugfix: Correct source of PID for -ddd installation outputs (#25596) --- lib/spack/spack/installer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index baeaac70fb..dc0180feed 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -1163,7 +1163,7 @@ class PackageInstaller(object): except spack.build_environment.StopPhase as e: # A StopPhase exception means that do_install was asked to # stop early from clients, and is not an error at this point - pid = '{0}: '.format(pkg.pid) if tty.show_pid() else '' + pid = '{0}: '.format(self.pid) if tty.show_pid() else '' tty.debug('{0}{1}'.format(pid, str(e))) tty.debug('Package stage directory: {0}' .format(pkg.stage.source_path)) @@ -1715,7 +1715,7 @@ class BuildProcessInstaller(object): self.filter_fn = spack.util.path.padding_filter if filter_padding else None # info/debug information - pid = '{0}: '.format(pkg.pid) if tty.show_pid() else '' + pid = '{0}: '.format(os.getpid()) if tty.show_pid() else '' self.pre = '{0}{1}:'.format(pid, pkg.name) self.pkg_id = package_id(pkg) -- cgit v1.2.3-60-g2f50