[LTP] [PATCH v3 1/1] lib/tst_pid.c: Count used pid by traversing /proc

Petr Vorel pvorel@suse.cz
Tue Feb 21 14:25:37 CET 2023


Hi all,

fixed typo in variable name and merged.
Thanks!

Kind regards,
Petr

+++ lib/tst_pid.c
@@ -117,7 +117,7 @@ static int get_used_pids(void (*cleanup_fn) (void))
 	DIR *dir_proc;
 	struct dirent *ent;
 	char status_path[PATH_MAX];
-	int used_thread, used_pids = 0;
+	int used_threads, used_pids = 0;
 
 	dir_proc = SAFE_OPENDIR("/proc");
 


More information about the ltp mailing list