summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2018-05-04 08:58:53 +0000
committerMarc Espie <espie@cvs.openbsd.org>2018-05-04 08:58:53 +0000
commit289e1d47e8c5fb788c6a0414fd952fcc1dfe4b64 (patch)
tree1dcfec503adc47eba9664b7d823876d18cdccb5c
parentec5654b6197c25438f6d2d94a70b9956c3d83c7f (diff)
the perl debugger tells you everything a perl process exits.
this child is irrelevant, tell the debugger (if present) to not stop
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCreate.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
index 3660fd9385e..5d664047322 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCreate.pm
@@ -1,6 +1,6 @@
#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.136 2018/04/29 20:38:17 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.137 2018/05/04 08:58:52 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
@@ -888,8 +888,10 @@ sub ask_tree
$state->fatal("cannot fork: $!");
}
if ($pid == 0) {
+ # make things debuggable because this child doesn't matter
+ $DB::inhibit_exit = 0;
chdir $portsdir or exit 2;
- open STDERR, '>', '/dev/null';
+# open STDERR, '>', '/dev/null';
$ENV{FULLPATH} = 'Yes';
delete $ENV{FLAVOR};
delete $ENV{SUBPACKAGE};