diff --git a/lib/procinfo_unix.cpp b/lib/procinfo_unix.cpp index 6c338d891f..41b3f3249b 100644 --- a/lib/procinfo_unix.cpp +++ b/lib/procinfo_unix.cpp @@ -59,6 +59,12 @@ using std::vector; // see: // man 5 proc // /usr/src/linux/fs/proc/array.C +// +// Interesting note: the command part of /proc/PID/stat is the first +// 15 characters of the executable filename. +// If you want the entire filename, or the rest of the cmdline, +// you need to parse /proc/PID/cmdline, +// which is the cmdline with NULL separators struct PROC_STAT { int pid; diff --git a/sched/sched_send.cpp b/sched/sched_send.cpp index 104331eca4..7b72930518 100644 --- a/sched/sched_send.cpp +++ b/sched/sched_send.cpp @@ -1608,8 +1608,7 @@ void send_work() { } if (!work_needed(false)) { - send_user_messages(); - return; + goto done; } if (config.locality_scheduler_fraction > 0) {