mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Sync changes.
This commit is contained in:
parent
c94c0210f7
commit
bbf0d11a51
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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; });
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue