system + exit -> exec
authorespie <espie@openbsd.org>
Mon, 6 Nov 2023 08:21:43 +0000 (08:21 +0000)
committerespie <espie@openbsd.org>
Mon, 6 Nov 2023 08:21:43 +0000 (08:21 +0000)
as noticed by afresh1@
(this should be all for now)

gnu/usr.bin/perl/cpan/Term-Cap/Cap.pm

index c814a71..0bfbfcb 100644 (file)
@@ -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: $!";