X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Futils%2Fpintos;h=ccf10377641baf04ee31ad679e4df626b8f16dcc;hb=000aa464d48cc64e885137e1a8040aca75e9344a;hp=856ebfa473ac270c70858547aabef498d7360f8d;hpb=f14d80c05e67af1545779f038d9f47dec2188fc3;p=pintos-anon diff --git a/src/utils/pintos b/src/utils/pintos index 856ebfa..ccf1037 100755 --- a/src/utils/pintos +++ b/src/utils/pintos @@ -492,7 +492,9 @@ config.version = 6 guestOS = "linux" floppy0.present = FALSE memsize = $mem +EOF + print VMX < 0; + last; + } + # Read and print out pipe data. my ($len) = length ($buf); waitpid ($pid, 0), last if sysread ($in, $buf, 4096, $len) <= 0; - print STDOUT substr ($buf, $len); + print substr ($buf, $len); # Remove full lines from $buf and scan them for keywords. while ((my $idx = index ($buf, "\n")) >= 0) { @@ -747,7 +756,7 @@ sub xsystem { sub relay_signal { my ($pid, $signal, $cleanup) = @_; kill $signal, $pid; - File::Temp::cleanup(); + eval { File::Temp::cleanup() }; # Not defined in old File::Temp. &$cleanup (); $SIG{$signal} = 'DEFAULT'; kill $signal, getpid ();