--- old/src/share/vm/utilities/vmError.cpp 2015-04-23 02:09:38.195367568 -0400 +++ new/src/share/vm/utilities/vmError.cpp 2015-04-23 02:09:36.859291782 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -1013,7 +1013,9 @@ out.print_raw (cmd); out.print_raw_cr("\" ..."); - os::fork_and_exec(cmd); + if (os::fork_and_exec(cmd) < 0) { + out.print_raw_cr("os::fork_and_exec failed"); + } } // done with OnError @@ -1098,7 +1100,9 @@ #endif tty->print_cr("\"%s\"...", cmd); - os::fork_and_exec(cmd); + if (os::fork_and_exec(cmd) < 0) { + out.print_raw_cr("os::fork_and_exec failed"); + } } }