pkarashchenko commented on code in PR #7454:
URL: https://github.com/apache/incubator-nuttx/pull/7454#discussion_r1007236474


##########
sched/sched/sched_waitpid.c:
##########
@@ -445,164 +586,24 @@ pid_t nx_waitpid(pid_t pid, int *stat_loc, int options)
         }
     }
 
-  /* On success, return the PID */
-
-  ret = pid;
+#ifdef CONFIG_SMP
+  leave_critical_section(flags);
+#else
+  sched_unlock();
+#endif
+  leave_cancellation_point();
+  return (int)pid;

Review Comment:
   ```suggestion
     return pid;
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to