correct return value for spawn... family of functions