vgdb: Handle EINTR and EAGAIN more consistently
commit646978d9adc5e334c10ad691f89421eb5c90541a
authorMark Wielaard <mark@klomp.org>
Wed, 3 Jul 2024 13:51:06 +0000 (3 15:51 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 5 Jul 2024 09:43:34 +0000 (5 11:43 +0200)
tree3207edfbd4969e39361fbb604aad98033b4338de
parent3b06d458ffc5cc8de8d701926e5d86979185fa04
vgdb: Handle EINTR and EAGAIN more consistently

Always handle EINTR or EAGAIN when calling read or write. Also be
consistent in the use of size_t and ssize_t for arguments and return
values.

This should make vgdb more robust against receiving signals or a
blocked pipe at the wrong time.

https://bugs.kde.org/show_bug.cgi?id=489676
NEWS
coregrind/vgdb.c