__isProfileMode = true;
}
+ // When the .NET Runtime receives SIGABRT and the previous handler is the default handler,
+ // the .NET Runtime restores the default handler as the current handler and continues.
+ // As a result, if a signal handler has not been registered before the .NET Runtime,
+ // the application will be terminated only after calling SIGAGRT twice.
+ // To avoid this situation, add signal handler before coreclr_initialize()
+ registerSigHandler();
+
// plugin initialize should be called before creating threads.
// In case of VD plugins, attaching secure zone is done in the plugin_initialize().
// When attaching to a secure zone, if there is a created thread, it will failed.
return -1;
}
- // VD has their own signal handler.
- if (!pluginHasLogControl()) {
- registerSigHandler();
- }
+ // This code is no longer needed because log redirection is performed by the system.
+ // However, since additional work can be done in the VD plugin, the function call is kept.
+ pluginHasLogControl();
int st = createDelegate(__hostHandle, __domainId, "Tizen.Runtime", "Tizen.Runtime.Environment", "SetEnvironmentVariable", (void**)&setEnvironmentVariable);
if (st < 0 || setEnvironmentVariable == nullptr) {