Explicitly send stubs instead of wrong FDs.
Fix return code from safer_{read,write} functions