xserver: Just dup fd instead of two fcntls to get a non-O_CLOEXEC fd
xserver: Just dup fd instead of two fcntls to get a non-O_CLOEXEC fd

Yeah, it's the same number of lines of code, but this actually checks
the error return.

kwm81/weston,Fantu/compositor-spice,Gnurou/weston,Fantu/compositor-spice,sir-murray/weston,giucam/weston,Fantu/compositor-spice,kwm81/weston,krezovic/weston,mchalupa/weston,sir-murray/weston,xorgy/weston,eyolfson/weston,mchalupa/weston,jonnylamb/weston,Tarnyko/weston-xdg_surface_present,udoprog/weston,krezovic/weston,jonnylamb/weston,giucam/weston,eyolfson/weston,xorgy/weston,Gnurou/weston,udoprog/weston,Tarnyko/weston-xdg_surface_present