Use file descriptor argument instead of stream itself for `spawn`