From ea3bc49201432df82468c251e8fd1f259b579a64 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Mon, 1 Feb 2016 08:52:44 +0100 Subject: [PATCH] add missing "or die $!;" --- bin/fcscs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/fcscs b/bin/fcscs index da614bc..27c133a 100755 --- a/bin/fcscs +++ b/bin/fcscs @@ -370,7 +370,7 @@ package Screen { foreach (@args) { $_ = $self->encode($_); } - say $fh "$module: @args"; + say $fh "$module: @args" or CORE::die $!; return; } @@ -878,7 +878,7 @@ sub handler_yank { # Use a temporary file to prevent leaking the yanked data to other users # with the command line, e.g. ps aux or top. my ($fh, $tmp) = File::Temp::tempfile(); # dies on its own - print $fh $screen->encode($match->{value}); + print $fh $screen->encode($match->{value}) or die $!; close $fh or die $!; if ($config->{setting}{multiplexer} eq 'screen') { -- 2.45.2