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
2011-11-28 23:36:48 +00:00
2010-08-23 22:24:11 +00:00
2011-06-24 07:05:20 +00:00
2010-02-26 09:41:16 +00:00
2007-12-19 03:31:44 +00:00
2011-11-06 16:40:17 +00:00
2010-05-17 11:18:33 +00:00
2011-06-24 07:05:20 +00:00
2010-12-20 08:54:30 +00:00
2011-06-24 07:05:20 +00:00
2010-12-20 09:36:54 +00:00
KNF
2011-11-15 06:50:10 +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
2011-12-22 03:36:54 +00:00
2010-03-04 13:35:57 +00:00
2011-08-06 09:11:30 +00:00
2010-10-05 06:31:11 +00:00
2010-07-30 11:58:18 +00:00
2011-02-19 11:44:04 +00:00
2011-06-24 07:05:20 +00:00
2011-01-27 14:16:12 +00:00