aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimput.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/vimput.pl b/vimput.pl
index 042f830..0305c6c 100644
--- a/vimput.pl
+++ b/vimput.pl
@@ -93,14 +93,18 @@ sub update_input_line_when_finished {
};
mkfifo($fifo_path, 0600) or do {
+ print $write_handle ERROR_PREFIX . "Failed to make FIFO: $!";
+
cleanup();
- # die $!;
+
POSIX::_exit(1);
};
open my $fifo, '<', $fifo_path or do {
+ print $write_handle ERROR_PREFIX . "Failed to open FIFO: $!";
+
cleanup();
- # die $!;
+
POSIX::_exit(1);
};
$fifo->autoflush(1);