Browse Source

Fix `dfm vim` not running with closed STDOUT

master
Noah Petherbridge 5 years ago
parent
commit
c0efe968fe
  1. 6
      home/bin/dfm

6
home/bin/dfm

@ -26,6 +26,7 @@ use warnings;
use Cwd qw(getcwd abs_path);
use Data::Dumper;
use File::Copy;
use File::Spec;
use FindBin;
use Getopt::Long;
@ -105,8 +106,9 @@ sub main {
if ($command eq "setup") {
setup();
if (fork() == 0) {
close(STDOUT);
close(STDERR);
open(STDOUT, '>', File::Spec->devnull());
open(STDERR, '>', File::Spec->devnull());
print "[`dfm vim` finished]\n";
vim();
}
} elsif ($command eq "vim") {

Loading…
Cancel
Save