Declared $pid in snapinstall

This commit is contained in:
2017-06-02 18:54:55 -05:00
parent 98c0ab336f
commit d4baa191d6
2 changed files with 3 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ use constant VERFILE => eval {
}
};
use constant {
VERSION => '0.10',
VERSION => '0.11',
SNAPDIR => TARGET . '/var/lib/snap',
PKGDIR => TARGET . '/var/lib/snap/packages',
INSTDIR => TARGET . '/var/lib/snap/installed',

View File

@@ -85,6 +85,8 @@ foreach my $package ( @$packages ) {
}
if ( $virtfs ) {
my $pid;
if ( $pid = fork() ) {
waitpid( $pid, 0 );
}