use tcsetattr only if stdin is a tty

fix dav-sync push creating finfo elements without using the mempool, which could lead to crashes

(0) -300 -100 -30 -10 -2 +2 +10 +30 +100 tip

mercurial