Author: Almudena García Jurado-Centurión Date: Wed Oct 31 2:40:42 2019 +0100 info.c: fix filling last_processor member --- hurd/proc/info.c 2019-10-26 23:12:40.495359917 +0200 +++ hurd~/proc/info.c 2019-10-31 02:34:54.163158618 +0100 @@ -713,6 +713,15 @@ *flags &= ~PI_FETCH_THREAD_SCHED; err = 0; } + +#ifdef HAVE_STRUCT_THREAD_SCHED_INFO_LAST_PROCESSOR + /* if the structure read doesn't include last_processor field, set It to 0 */ + if(thcount < 8) + { + pi->threadinfos[i].pis_si.last_processor = 0; + } +#endif + } /* Note that there are thread wait entries only for those threads