Date: Mon, 22 Jan 2001 16:43:43 +0900 From: Jun Kuriyama <kuriyama@imgsrc.co.jp> To: Current <FreeBSD-current@FreeBSD.org> Subject: Exit value of rtprio(1) Message-ID: <7m66j8t4k0.wl@waterblue.imgsrc.co.jp>
next in thread | raw e-mail | index | archive | help
--Multipart_Mon_Jan_22_16:43:43_2001-1 Content-Type: text/plain; charset=US-ASCII Manual page of rtprio(1) says it returns exit value 0 on success when PID is specified via argument. But current rtprio(1) returns 1 whether rtprio(2) is processed successfully or not. This patch seems to fix to return 0 on success as documented in manpage. Please let me know if it is wrong... I'll commit this in this week. -- Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc. <kuriyama@FreeBSD.org> // FreeBSD Project --Multipart_Mon_Jan_22_16:43:43_2001-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="rtprio.diff" Content-Transfer-Encoding: 7bit Index: rtprio.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/rtprio/rtprio.c,v retrieving revision 1.8 diff -u -r1.8 rtprio.c --- rtprio.c 1999/08/28 01:19:49 1.8 +++ rtprio.c 2001/01/22 07:30:26 @@ -123,6 +123,7 @@ execvp(argv[2], &argv[2]); err(1, "%s", argv[2]); } + exit(0); } exit (1); } --Multipart_Mon_Jan_22_16:43:43_2001-1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7m66j8t4k0.wl>