diff dep/animia/src/fd/bsd.cc @ 144:e6668085e24d

dep/animia: fix many bugs in the linux code
author Paper <mrpapersonic@gmail.com>
date Sun, 12 Nov 2023 18:35:49 -0500
parents 4e750f6545cf
children d8a61e7e2a36
line wrap: on
line diff
--- a/dep/animia/src/fd/bsd.cc	Sun Nov 12 18:28:04 2023 -0500
+++ b/dep/animia/src/fd/bsd.cc	Sun Nov 12 18:35:49 2023 -0500
@@ -51,7 +51,7 @@
 	/* add pids to our vector */
 	pids.reserve(length / sizeof(*result));
 	for (int i = 0; i < length / sizeof(*result); i++)
-		pids.push_back(result[i].kp_proc.p_pid);
+		pids.insert(result[i].kp_proc.p_pid);
 }
 
 bool UnixFdTools::GetProcessName(pid_t pid, std::string& result) {