Test for EAGAIN too
merge
Be a bit safer in case pw_name doesn't exist