Sync with stdio.