Re: a nohup-like interface to cpu affinity

Sean Hunter (sean@dev.sportingbet.com)
Tue, 27 Nov 2001 08:42:24 +0000


On Tue, Nov 27, 2001 at 01:39:50AM -0500, Robert Love wrote:
> On Tue, 2001-11-27 at 01:32, Linux maillist account wrote:
>
> > It's isn't quite the same..the biggest difference is races.
>
> Then you can set the affinity on your shell before executing the
> process. :)

Surely

#!/bin/sh

echo $1 > /proc/self/affinity
shift
exec $@

...would be just fine 'n dandy as a wrapper.

Sean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/