Mercurial > octave
diff liboctave/system/child-list.cc @ 30063:a8c61e096c68
maint: clean up some variable renamings in cset bffdbda91d28
* child-list.cc, child-list.h: Don't use "m_" prefix within function prototypes
or for function parameters.
author | Rik <rik@octave.org> |
---|---|
date | Sun, 29 Aug 2021 19:59:28 -0700 |
parents | bffdbda91d28 |
children | f8ee588f1c7d |
line wrap: on
line diff
--- a/liboctave/system/child-list.cc Sun Aug 29 19:58:26 2021 -0700 +++ b/liboctave/system/child-list.cc Sun Aug 29 19:59:28 2021 -0700 @@ -45,14 +45,14 @@ pid_t val; }; - void child_list::remove (pid_t m_pid) + void child_list::remove (pid_t pid) { - m_list.remove_if (pid_equal (m_pid)); + m_list.remove_if (pid_equal (pid)); } - void child_list::child_list::insert (pid_t m_pid, child::child_event_handler f) + void child_list::child_list::insert (pid_t pid, child::child_event_handler f) { - m_list.append (child (m_pid, f)); + m_list.append (child (pid, f)); } void child_list::reap (void) @@ -77,11 +77,11 @@ } } - // ?? + // Remove PIDs that have completed above. remove (-1); } - // Wait on our children and record any changes in their m_status. + // Wait on our children and record any changes in their status. bool child_list::wait (void) { @@ -89,17 +89,17 @@ for (auto& oc : m_list) { - pid_t m_pid = oc.m_pid; + pid_t pid = oc.m_pid; - if (m_pid > 0) + if (pid > 0) { - int m_status; + int status; - if (sys::waitpid (m_pid, &m_status, sys::wnohang ()) > 0) + if (sys::waitpid (pid, &status, sys::wnohang ()) > 0) { oc.m_have_status = 1; - oc.m_status = m_status; + oc.m_status = status; retval = true;