Mercurial > minori
comparison dep/animia/src/fd/proc.cc @ 182:c413e475f496
dep/animia: various stylistic changes
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 04 Dec 2023 13:19:54 -0500 |
parents | d26cd2c00270 |
children | bc1ae1810855 |
comparison
equal
deleted
inserted
replaced
181:d26cd2c00270 | 182:c413e475f496 |
---|---|
80 exe_used = readlink(link.c_str(), &out.front(), out.length()); | 80 exe_used = readlink(link.c_str(), &out.front(), out.length()); |
81 if (exe_used == (ssize_t)-1 || exe_used < (ssize_t)1) | 81 if (exe_used == (ssize_t)-1 || exe_used < (ssize_t)1) |
82 return false; // we got a bad result, i think | 82 return false; // we got a bad result, i think |
83 } | 83 } |
84 | 84 |
85 out.resize(out.find('\0')); | |
86 | |
85 return true; | 87 return true; |
86 } | 88 } |
87 | 89 |
88 static std::string GetProcessName(pid_t pid) { | 90 static std::string GetProcessName(pid_t pid) { |
89 std::string result; | 91 std::string result; |