Scott Cheloha <[email protected]> wrote:

> On Sat, Dec 31, 2022 at 07:05:20PM +0100, Mark Kettenis wrote:
> > > Date: Sat, 31 Dec 2022 10:33:26 -0500
> > > From: Scott Cheloha <[email protected]>
> > > 
> > > Here's another one.
> > > 
> > > The progress meter in scp(1) and sftp(1) updates periodically, once
> > > per second.  But using alarm(3) to repeatedly rearm the signal causes
> > > that update period to drift forward:
> > > 
> > > [...]
> > > 
> > > If we use setitimer(2), the update period does not drift:
> > > 
> > > [...]
> > 
> > Bad idea.  The setitimer(2) interface is marked as "OB XSI" in POSIX,
> > which means that it is considerent "Obsolescent" and may be removed in
> > a future version of POSIX.  Since we want ssh to be as portable as
> > possible we shouldn't use it there.
> 
> Strict POSIX conformance is pretty portable.  But in practice, I think
> of portability as "using stuff everyone has".

I think you are right, especially when it comes to OpenSSH.  OpenSSH is
likely impossible in a "pure POSIX" environment, it needs "POSIX + a whole
lot more".  In anycase, that POSIX sub-battle is dumb.

Reply via email to