-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log process id #54
Log process id #54
Conversation
Nice idea. This could be really useful. |
nice work |
I can already see all the complaints about it not compiling on everybodys machine, can you surround that with an |
I haven't tested on Windows yet, but the API seems to point that it returns a DWORD, so it must work. |
src/chia_plot.cpp
Outdated
#include <processthreadsapi.h> | ||
#define GETPID GetCurrentProcessId | ||
#else | ||
#define GETPID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that won't compile, how about: #define GETPID() int(-1)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My apologies, I haven't tested it so I had no idea about that.
I don't think this needs any description