accept4: reworked commit efbd6836 to make legacy code much more evident