On 09:34 Fri 04 Dec, Otto Moerbeek wrote:
> > The main problem with this code is that ENOTTY is the wrong errno to
> > return. ENOTTY has a very specific meaning.
> 
> It's hard to pick the right one. ESRCH seems close, but is for the
> reverse situation (you're requesting info for a pid taht does not exist).
> How about ECHILD?

Maybe also ENOTCONN (as when no pid is available -- tunnel is not
connected),
or EPROCUNAVAIL/EPROGUNAVAIL (the name suits, but the intro(2)
description doesn't).

Reply via email to