sync stdout