From 4b5a099f813cff32d969383d37b785eb741d762f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 4 Feb 2014 15:58:01 -0800 Subject: [PATCH] scheduler: create host_app_version records in NCI case --- lib/procinfo_unix.cpp | 6 ++++++ sched/sched_send.cpp | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) 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) {