Even more effective is:
mv /wherever/exeimage /usr/bin/exeimage
The kernel keeps around the contents of the old file while
the executing process still runs.
This is also basically how things like libc get installed.
A single mv is not only preserves currently referenced contents,
it is atomic.
Later,
David S. Miller
davem@redhat.com
-
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/