From: espie Date: Mon, 6 Nov 2023 08:21:43 +0000 (+0000) Subject: system + exit -> exec X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9eb8b03abf77816730066d8d03ef3622b38d96df;p=openbsd system + exit -> exec as noticed by afresh1@ (this should be all for now) --- diff --git a/gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm b/gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm index c814a7196c1..0bfbfcbef39 100644 --- a/gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm +++ b/gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm @@ -276,8 +276,7 @@ sub Tgetent warn "cannot run infocmp: $!" if !defined $child; if (!$child) { open(STDERR, ">", "/dev/null"); - system('infocmp', '-CTr', $tmp_term); - exit(1); + exec('infocmp', '-CTr', $tmp_term); } } else { open($fh, '<', $TERMCAP) || croak "open $TERMCAP: $!";