[Linuxptp-devel] [PATCH 1/2] sk: don't report random errno on timeout

2023-07-21 Thread Lukasz Plachno
From: Przemek Kitszel With neither caller nor poll() itself zeroing errno value, it will contain result of previous failure, possibly from long time ago. Reporting errno=0 up from sk_receive() would bring confusion, as "%m" is later used in pr_err() (so one would get "error Success"). Use ETIME

[Linuxptp-devel] [PATCH 1/2] sk: don't report random errno on timeout

2023-07-21 Thread Lukasz Plachno
From: Przemek Kitszel With neither caller nor poll() itself zeroing errno value, it will contain result of previous failure, possibly from long time ago. Reporting errno=0 up from sk_receive() would bring confusion, as "%m" is later used in pr_err() (so one would get "error Success"). Use ETIME

[Linuxptp-devel] [PATCH 1/2] sk: don't report random errno on timeout

2023-07-19 Thread Lukasz Plachno
From: Przemek Kitszel With neither caller nor poll() itself zeroing errno value, it will contain result of previous failure, possibly from long time ago. Reporting errno=0 up from sk_receive() would bring confusion, as "%m" is later used in pr_err() (so one would get "error Success"). Use ETIME