Date: Wed, 16 Jul 2008 21:30:07 GMT From: David Schultz <das@FreeBSD.ORG> To: freebsd-bugs@FreeBSD.org Subject: Re: misc/125680: atacontrol depends on executable in /usr Message-ID: <200807162130.m6GLU7Qk086805@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/125680; it has been noted by GNATS.
From: David Schultz <das@FreeBSD.ORG>
To: Kris Kennaway <kris@FreeBSD.ORG>
Cc: bug-followup@FreeBSD.ORG
Subject: Re: misc/125680: atacontrol depends on executable in /usr
Date: Wed, 16 Jul 2008 17:28:31 -0400
On Wed, Jul 16, 2008, Kris Kennaway wrote:
> Better fix: use /bin/csh and the built-in nice.
Better yet, given that it's a C program that invokes
/usr/bin/nice -n 20 /bin/dd if=/dev/ar%d of=/dev/null bs=1m &
via system(3), would be to use nice(3). Actually, the whole thing
is sort of dubious: What if my libraries are corrupted and I'm trying
to use /rescue/atacontrol to fix things, but it gives an error because
it's hardwired to use /bin/dd instead of /rescue/dd? A simple
while (!eof) read(); loop should suffice.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807162130.m6GLU7Qk086805>
