The SunOS 4.1 version always returns 0 if successful. The SunOS 5.x version returns the new nice value minus 20.