INFO("child return value : %d\n", dwRet);
if (dwRet != 0) {
- //child process is terminated with some problem.
- //so qemu process will terminate, too. immediately.
- exit(1);
+ /* child process is terminated with some problem.
+ So qemu process will terminate, too. immediately. */
+ shutdown_qemu_gracefully();
}
if (CloseHandle(pi.hProcess) != 0) {
INFO("child return value : %d\n", ret);
if (ret != 0) {
- //child process is terminated with some problem.
- //so qemu process will terminate, too. immediately.
- exit(1);
+ /* child process is terminated with some problem.
+ So qemu process will terminate, too. immediately. */
+ shutdown_qemu_gracefully();
}
}
#else
close( client_sock );
#endif
+ client_sock = 0;
}
if ( close_server_socket ) {
#else
close( server_sock );
#endif
+ server_sock = 0;
}
}
#else
close( server_sock );
#endif
+ server_sock = 0;
}
if( shutdown_qmu ) {
#else
close( client_sock );
#endif
+ client_sock = 0;
}
start_skin_client( skin_argc, skin_argv );
#else
close( client_sock );
#endif
+ client_sock = 0;
}
stop_server = 1;
#else
close( server_sock );
#endif
+ server_sock = 0;
}
ERR( "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n" );