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>
index | next in thread | raw e-mail
[-- Attachment #1 --]
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
[-- Attachment #2 --]
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);
}
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7m66j8t4k0.wl>
