Fix dfm vim
not running with closed STDOUT
This commit is contained in:
parent
91cb299406
commit
c0efe968fe
|
@ -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…
Reference in New Issue
Block a user