avoid setting errno when checking for tty
setting errno here is completely valid, but some programs, notably busybox printf, assume that errno will not be set during output and treat this as an error condition. in any case, skipping it slightly reduces code size and saves time.
Showing
想要评论请 注册 或 登录