blob: 11db92f8252cc17a8fce1228a3b1cb2768e376cd [file] [log] [blame]
#!/bin/sh
affinity=$1
shift
if taskset "$affinity" true 2>/dev/null; then
exec taskset "$affinity" "$@"
else
echo "try_taskset: note: affinity '$affinity' unavailable, used default." >&2
exec "$@"
fi