|
@@ -191,10 +191,10 @@ pid_t pid_vnr(struct pid *pid);
|
|
|
#define do_each_pid_thread(pid, type, task) \
|
|
|
do_each_pid_task(pid, type, task) { \
|
|
|
struct task_struct *tg___ = task; \
|
|
|
- do {
|
|
|
+ for_each_thread(tg___, task) {
|
|
|
|
|
|
#define while_each_pid_thread(pid, type, task) \
|
|
|
- } while_each_thread(tg___, task); \
|
|
|
+ } \
|
|
|
task = tg___; \
|
|
|
} while_each_pid_task(pid, type, task)
|
|
|
#endif /* _LINUX_PID_H */
|