delphij
2fadf62dc1
- Fail when the utility is not invoked as rtprio nor idprio.
...
- use warnx() to tell the user whether a process is running in normal,
idle or realtime priority. with the old code it would have been possible
for another process to send data to stdout between
printf("%s: ", p);
and
printf("* priority\n");
and thus break the formatting.
- 'rtprio 10 -0' triggeres non-intuitive behavior. It would first set the
priority of itself to 10 *and* would then try to execute '-0'. Of course,
setting the priority of [id|rt]prio itself doesn't make a lot of sense,
but it is intuitive compared to the previous behavior.
- 'rtprio -t --1' will actually pass over the '-1' to rtprio(). Now
invoking rtprio like this will catch the wrong usage before passing
over the invalid argument to rtprio().
- Garrett Cooper suggested to add further diagnostics where the failure
occures, if execvp fails.
PR: bin/154042
Submitted by: arundel
MFC after: 1 month
2011-12-27 20:03:57 +00:00
..
2010-12-06 10:24:06 +00:00
2010-01-02 11:07:44 +00:00
2011-11-28 23:36:48 +00:00
2010-05-13 12:07:55 +00:00
2010-08-23 22:24:11 +00:00
2011-06-24 07:05:20 +00:00
2011-11-06 19:01:30 +00:00
2010-11-22 14:16:22 +00:00
2010-11-30 16:14:19 +00:00
2011-07-16 11:20:54 +00:00
2010-04-14 19:08:06 +00:00
2010-01-02 11:07:44 +00:00
2010-02-26 09:41:16 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-12-17 19:26:03 +00:00
2011-12-20 15:19:29 +00:00
2010-01-04 18:08:16 +00:00
2011-12-02 02:05:26 +00:00
2011-12-17 19:53:08 +00:00
2010-01-02 11:07:44 +00:00
2011-10-09 21:42:02 +00:00
2011-11-06 16:52:26 +00:00
2010-01-02 11:07:44 +00:00
2011-11-06 19:01:41 +00:00
2011-11-06 16:40:17 +00:00
2010-10-08 12:40:16 +00:00
2010-05-19 08:57:53 +00:00
2011-11-30 13:33:09 +00:00
2011-12-17 19:58:48 +00:00
2010-11-30 16:04:40 +00:00
2011-11-25 17:41:12 +00:00
2010-10-08 12:40:16 +00:00
2011-12-17 20:07:42 +00:00
2010-05-17 11:18:33 +00:00
2010-10-08 12:40:16 +00:00
2011-07-16 11:20:54 +00:00
2011-11-06 19:01:48 +00:00
2010-01-02 11:07:44 +00:00
2011-07-21 19:39:40 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-07-16 11:20:54 +00:00
2011-07-16 11:20:54 +00:00
2011-07-16 11:20:54 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-02-16 21:47:05 +00:00
2010-05-12 21:25:05 +00:00
2010-12-08 10:27:07 +00:00
2011-08-02 11:35:28 +00:00
2010-05-27 13:56:19 +00:00
2011-02-21 09:56:08 +00:00
2011-11-06 19:01:54 +00:00
2010-04-14 19:08:06 +00:00
2011-03-01 08:52:10 +00:00
2011-07-06 15:18:32 +00:00
2011-10-23 06:23:11 +00:00
2011-06-28 11:57:25 +00:00
2011-12-21 20:27:41 +00:00
2011-07-16 11:20:54 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-05-25 21:04:11 +00:00
2010-05-19 08:57:53 +00:00
2010-01-02 11:07:44 +00:00
2011-12-17 20:12:17 +00:00
2011-06-24 07:05:20 +00:00
2010-01-02 11:07:44 +00:00
2011-12-17 20:25:23 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-08-28 16:32:01 +00:00
2011-07-16 11:20:54 +00:00
2011-08-02 19:44:40 +00:00
2010-01-02 11:07:44 +00:00
2011-08-13 13:49:11 +00:00
2011-12-12 12:33:38 +00:00
2011-10-16 16:05:23 +00:00
2011-12-17 20:53:06 +00:00
2010-08-28 15:03:11 +00:00
2011-06-06 18:40:01 +00:00
2010-12-20 19:08:15 +00:00
2011-12-17 22:05:28 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-10-12 21:01:26 +00:00
2011-12-20 12:34:17 +00:00
2010-01-02 11:07:44 +00:00
2011-11-06 19:01:59 +00:00
2011-11-29 08:22:12 +00:00
2011-12-05 15:11:35 +00:00
2011-11-06 19:02:13 +00:00
2010-12-20 08:54:30 +00:00
2010-10-08 12:40:16 +00:00
2010-03-04 16:07:14 +00:00
2011-12-10 18:11:06 +00:00
2010-01-02 11:07:44 +00:00
2011-07-14 07:35:28 +00:00
2011-11-06 19:02:20 +00:00
2011-11-06 16:47:50 +00:00
2010-11-22 14:36:04 +00:00
2011-06-24 17:54:45 +00:00
2011-11-13 17:06:33 +00:00
2011-09-03 07:13:45 +00:00
2011-07-16 11:20:54 +00:00
2010-01-02 11:07:44 +00:00
2011-07-16 11:20:54 +00:00
2011-12-17 22:16:27 +00:00
2011-03-21 09:40:01 +00:00
2011-12-21 20:27:41 +00:00
2010-08-16 15:18:30 +00:00
2011-06-24 07:05:20 +00:00
2010-07-20 00:32:11 +00:00
2009-05-29 22:19:45 +00:00
2011-06-21 21:07:33 +00:00
2010-12-20 09:36:54 +00:00
2010-01-02 11:07:44 +00:00
2010-05-19 08:57:53 +00:00
2011-07-16 11:20:54 +00:00
2011-04-05 18:41:01 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-11-12 19:02:55 +00:00
2010-09-16 16:03:12 +00:00
2010-04-14 19:08:06 +00:00
2011-12-17 23:35:46 +00:00
2010-10-16 17:30:27 +00:00
2011-12-17 23:39:13 +00:00
2011-11-15 06:50:10 +00:00
2010-01-02 11:07:44 +00:00
2011-11-13 06:39:49 +00:00
2011-12-11 19:22:42 +00:00
2011-06-24 07:05:20 +00:00
2010-04-14 19:08:06 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-09-28 18:53:36 +00:00
2011-12-22 03:36:54 +00:00
2011-11-06 19:02:25 +00:00
2011-01-24 06:17:05 +00:00
2010-03-04 13:35:57 +00:00
2010-12-06 09:37:56 +00:00
2010-03-16 06:12:30 +00:00
2011-11-06 19:02:31 +00:00
2011-11-06 19:02:37 +00:00
2011-07-16 11:20:54 +00:00
2011-07-16 11:20:54 +00:00
2011-12-18 00:03:03 +00:00
2011-06-02 19:49:47 +00:00
2011-06-02 20:15:32 +00:00
2010-01-02 11:07:44 +00:00
2011-06-24 07:05:20 +00:00
2011-12-18 00:55:46 +00:00
2011-05-30 02:41:04 +00:00
2011-07-14 07:28:49 +00:00
2010-01-02 11:07:44 +00:00
2011-09-12 23:52:55 +00:00
2011-09-20 00:32:30 +00:00
2011-12-27 20:03:57 +00:00
2011-09-12 23:55:23 +00:00
2011-04-23 13:42:03 +00:00
2011-12-18 01:08:25 +00:00
2011-12-18 01:14:38 +00:00
2011-12-19 13:35:44 +00:00
2011-08-06 09:11:30 +00:00
2010-10-05 06:31:11 +00:00
2010-04-14 19:08:06 +00:00
2010-04-14 19:08:06 +00:00
2010-05-27 13:56:19 +00:00
2011-11-06 19:02:43 +00:00
2011-01-13 17:30:18 +00:00
2011-11-06 19:02:49 +00:00
2011-07-14 07:33:53 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-06-06 17:07:38 +00:00
2011-10-16 14:30:28 +00:00
2011-12-19 20:33:53 +00:00
2010-12-04 14:19:27 +00:00
2010-12-11 09:38:12 +00:00
2011-12-01 09:02:57 +00:00
2011-02-16 21:04:47 +00:00
2010-07-30 11:58:18 +00:00
2011-12-19 20:38:26 +00:00
2011-02-26 09:28:52 +00:00
2011-10-17 15:54:20 +00:00
2011-02-19 11:44:04 +00:00
2011-12-11 21:02:33 +00:00
2010-01-02 11:07:44 +00:00
2010-02-09 17:16:13 +00:00
2010-09-26 01:45:33 +00:00
2010-01-02 11:07:44 +00:00
2010-01-02 11:07:44 +00:00
2011-06-24 07:05:20 +00:00
2011-12-19 20:44:44 +00:00
2011-10-24 14:35:31 +00:00
2010-02-16 21:47:05 +00:00
2011-05-30 02:41:04 +00:00
2011-12-21 20:47:24 +00:00
2010-01-02 11:07:44 +00:00
2010-03-20 11:05:11 +00:00
2011-10-03 15:13:09 +00:00
2010-12-09 11:37:40 +00:00
2010-09-13 02:21:07 +00:00
2010-09-13 02:21:07 +00:00
2010-09-13 02:21:07 +00:00
2010-01-02 11:07:44 +00:00
2011-01-27 14:16:12 +00:00
2010-09-13 02:21:07 +00:00
2010-09-13 02:21:07 +00:00