mirror of
https://github.com/ivabus/pantry
synced 2024-11-14 04:25:08 +03:00
d11f61e163
we hardcoded the source url :(
12 lines
No EOL
272 B
C++
12 lines
No EOL
272 B
C++
#include <eden/common/utils/ProcessInfo.h>
|
|
#include <cstdlib>
|
|
#include <iostream>
|
|
|
|
using namespace facebook::eden;
|
|
|
|
int main(int argc, char **argv) {
|
|
if (argc <= 1) return 1;
|
|
int pid = std::atoi(argv[1]);
|
|
std::cout << readProcessName(pid) << std::endl;
|
|
return 0;
|
|
} |