client: check return of dup(2)