Sync changes.

This commit is contained in:
XMRig 2019-03-17 16:03:45 +07:00
parent c94c0210f7
commit bbf0d11a51
2 changed files with 4 additions and 3 deletions

View file

@ -28,7 +28,6 @@
#include "base/kernel/Process.h"
#include "version.h"
static size_t location(xmrig::Process::Location location, char *buf, size_t max)
@ -52,8 +51,6 @@ xmrig::Process::Process(int argc, char **argv) :
m_arguments(argc, argv)
{
srand(static_cast<unsigned int>(static_cast<uintptr_t>(time(nullptr)) ^ reinterpret_cast<uintptr_t>(this)));
uv_set_process_title(APP_DESC " " APP_VERSION);
}

View file

@ -47,6 +47,10 @@ public:
template<typename T>
static inline void deleteLater(T handle)
{
if (uv_is_closing(reinterpret_cast<uv_handle_t *>(handle))) {
return;
}
uv_close(reinterpret_cast<uv_handle_t *>(handle), [](uv_handle_t *handle) { delete handle; });
}
};