summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2009-01-14 11:46:24 +0200
committerGuillem Jover <guillem@debian.org>2009-01-14 11:50:09 +0200
commita5908b7ddb65d84650f0dab407097bdbca6a2cc2 (patch)
treee8af2bb8ea0d0d813e8630c421199915ac488476 /ChangeLog
parent25d4a1752f91014702d4e06d96a73f182c6d8c42 (diff)
downloaddpkg-a5908b7ddb65d84650f0dab407097bdbca6a2cc2.tar.gz
s-s-d: Support setting the process scheduler policy and priority
Add new option -P, --procsched <policy[:priority]>. Closes: #175740
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog17
1 files changed, 17 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 83839518c..ad1ddf5ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,22 @@
2009-01-14 Guillem Jover <guillem@debian.org>
+ * man/start-stop-daemon.8: Document new option --procsched.
+ * utils/start-stop-daemon.c [_POSIX_PRIORITY_SCHEDULING]: Include
+ <sched.h>.
+ [!_POSIX_PRIORITY_SCHEDULING]: Define SCHED_OTHER, SCHED_FIFO and
+ SCHED_RR with dummy values.
+ (struct res_schedule): New type.
+ (proc_sched): New variable.
+ (do_help): Document --procsched.
+ (parse_proc_schedule, set_proc_schedule): New functions.
+ (parse_options): Add 'procsched' to longopts. Add 'P:' to getopt_long
+ call. Handle 'P' as getopt_long return value. Call parse_proc_schedule
+ if proc_schedule_str is not NULL.
+ (main): Print proc_sched values if --test is used. Call
+ set_proc_schedule if proc_sched is not NULL.
+
+2009-01-14 Guillem Jover <guillem@debian.org>
+
* utils/start-stop-daemon.c (xstrdup): New function.
(parse_options): Use xstrdup instead of strdup.