6509-fixed interactive container hangs before exit
when redirecting stdout