mirror of
https://github.com/fspc/gbootroot.git
synced 2025-02-22 16:43:23 -05:00
This allows uml consoles to run as children processes, which is nice.
This commit is contained in:
parent
ccd927c614
commit
f0c6a667fa
16
gBootRoot
16
gBootRoot
@ -1069,10 +1069,18 @@ sub uml_box {
|
||||
sub {
|
||||
# UML kernel = $entry_advanced[5]
|
||||
# xterm -e linux ubd#=root_fs
|
||||
# root=/dev/ubd#
|
||||
sys("$entry_advanced[8] $entry_advanced[5] $entry_advanced[9] $entry_advanced[10]");
|
||||
} );
|
||||
# root=/dev/ubd#
|
||||
my $pid;
|
||||
unless ($pid = fork) {
|
||||
unless (fork) {
|
||||
sys("$entry_advanced[8] $entry_advanced[5] $entry_advanced[9] $entry_advanced[10]");
|
||||
|
||||
}
|
||||
}
|
||||
waitpid($pid,0);
|
||||
|
||||
# sys ("perl -e 'system \"$entry_advanced[8] $entry_advanced[5] $entry_advanced[9] $entry_advanced[10]\";'");
|
||||
} );
|
||||
|
||||
#_______________________________________
|
||||
# Cancel button also kills UML kernel if still open
|
||||
@ -1082,7 +1090,7 @@ sub uml_box {
|
||||
# This has to be improved .. don't
|
||||
# want other processes killed
|
||||
# remove_matching_process("linux");
|
||||
$uml_window->destroy();
|
||||
$uml_window->destroy() if $uml_window;
|
||||
} );
|
||||
|
||||
$uml_window->show();
|
||||
|
Loading…
x
Reference in New Issue
Block a user