dsh STDOUT descriptor patch