From: Petr Vorel Date: Fri, 5 Mar 2021 16:05:55 +0100 Subject: [LTP] [PATCH] pidns13: Convert to new API and fix race condition In-Reply-To: <20210303142735.2145-1-rpalethorpe@suse.com> References: <20210303142735.2145-1-rpalethorpe@suse.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Richie, > Firstly the test used sleep() for synchronisation which is unreliable > and slow, so it has been converted to checkpoints. > Secondly this still leaves a race between wake and sigtimedwait. Also > at least two I/O signals are generated by the pipe FD. One for the > write and probably one for EOF when the other end is closed. So we > block the signal as suggested by the man pages. Thanks a lot for fix and rewrite. I did tiny change in docparse doc (remove tabs) to fix docparse error and merged. Kind regards, Petr