misc/125680: atacontrol depends on executable in /usr
Kris Kennaway
kris at FreeBSD.org
Wed Jul 16 22:10:03 UTC 2008
The following reply was made to PR bin/125680; it has been noted by GNATS.
From: Kris Kennaway <kris at FreeBSD.org>
To: David Schultz <das at FreeBSD.ORG>
Cc: bug-followup at FreeBSD.ORG
Subject: Re: misc/125680: atacontrol depends on executable in /usr
Date: Thu, 17 Jul 2008 00:04:28 +0200
David Schultz wrote:
> 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.
>
>
You make a good point, sir :)
Kris
More information about the freebsd-bugs
mailing list