mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 10:35:17 +03:00
d11f61e163
we hardcoded the source url :(
12 lines
272 B
C++
12 lines
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;
|
|
} |