Changed buff size to PIPE_BUF. set sdtin/stdout to non blocking