1 /* |
1 /* |
2 * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
525 |
525 |
526 static int message_box(const char* title, const char* message); |
526 static int message_box(const char* title, const char* message); |
527 static char* do_you_want_to_debug(const char* message); |
527 static char* do_you_want_to_debug(const char* message); |
528 |
528 |
529 // run cmd in a separate process and return its exit code; or -1 on failures |
529 // run cmd in a separate process and return its exit code; or -1 on failures |
530 static int fork_and_exec(char *cmd); |
530 static int fork_and_exec(char *cmd, bool use_vfork_if_available = false); |
531 |
531 |
532 // os::exit() is merged with vm_exit() |
532 // os::exit() is merged with vm_exit() |
533 // static void exit(int num); |
533 // static void exit(int num); |
534 |
534 |
535 // Terminate the VM, but don't exit the process |
535 // Terminate the VM, but don't exit the process |