[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] tests/libqtest.c: Delete possible stale unix so
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-devel] [PATCH] tests/libqtest.c: Delete possible stale unix sockets |
Date: |
Mon, 3 Apr 2017 19:01:58 +0100 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Fri, Mar 31, 2017 at 01:36:41PM +0100, Peter Maydell wrote:
> Occasionally if a test crashes or is interrupted by the user
> at the wrong moment it could leave behind a stale UNIX
> socket in /tmp/. This will then cause a subsequent test
> run to fail spuriously with
> tests/libqtest.c:70:init_socket: assertion failed (ret != -1): (-1 != -1)
> if it happens to reuse the same PID.
>
> Defend against this by deleting any stray stale socket before
> trying to open the new ones for this test.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> This seems like an easy way to shut up this infrequent but irritating
> error case...
>
> tests/libqtest.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
- Re: [Qemu-devel] [PATCH] tests/libqtest.c: Delete possible stale unix sockets,
Stefan Hajnoczi <=