aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/blaze_util_freebsd.cc
diff options
context:
space:
mode:
authorGravatar Thiago Farina <tfarina@chromium.org>2017-05-24 14:29:07 +0200
committerGravatar Irina Iancu <elenairina@google.com>2017-05-24 14:37:49 +0200
commit255953740813414433eceedc99c2bef3c3f6e307 (patch)
treefbf53c185989938f1e7fc4bf915c4556bd111e8c /src/main/cpp/blaze_util_freebsd.cc
parentb7f82797934decadb9a74b329c11021575a3bcc7 (diff)
cpp: remove blaze_util::sys_ioprio_set() call from FreeBSD port
Currently sys_ioprio_set() is only implemented for Linux. Change-Id: Iadacf8fd48a804b981274e92ca3066a403c467fb PiperOrigin-RevId: 156977281
Diffstat (limited to 'src/main/cpp/blaze_util_freebsd.cc')
-rw-r--r--src/main/cpp/blaze_util_freebsd.cc14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/main/cpp/blaze_util_freebsd.cc b/src/main/cpp/blaze_util_freebsd.cc
index 2855332ecf..20a6eb06d6 100644
--- a/src/main/cpp/blaze_util_freebsd.cc
+++ b/src/main/cpp/blaze_util_freebsd.cc
@@ -99,19 +99,7 @@ uint64_t GetMillisecondsSinceProcessStart() {
}
void SetScheduling(bool batch_cpu_scheduling, int io_nice_level) {
- // Move ourself into a low priority CPU scheduling group if the
- // machine is configured appropriately. Fail silently, because this
- // isn't available on all kernels.
-
- if (io_nice_level >= 0) {
- if (blaze_util::sys_ioprio_set(
- IOPRIO_WHO_PROCESS, getpid(),
- IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, io_nice_level)) < 0) {
- pdie(blaze_exit_code::INTERNAL_ERROR,
- "ioprio_set() with class %d and level %d failed", IOPRIO_CLASS_BE,
- io_nice_level);
- }
- }
+ // Stubbed out so we can compile for FreeBSD.
}
string GetProcessCWD(int pid) {