Re: [PATCH v3 2/8] gdbstub: Try unlinking the unix socket before binding

2025-01-08 Thread Ilya Leoshkevich
On Wed, 2025-01-08 at 16:10 +, Alex Bennée wrote: > Ilya Leoshkevich writes: > > > In case an emulated process execve()s another emulated process, > > bind() > > will fail, because the socket already exists. So try deleting it. > > > > Note that it is not possible to handle this in do_execv(

Re: [PATCH v3 2/8] gdbstub: Try unlinking the unix socket before binding

2025-01-08 Thread Alex Bennée
Ilya Leoshkevich writes: > In case an emulated process execve()s another emulated process, bind() > will fail, because the socket already exists. So try deleting it. > > Note that it is not possible to handle this in do_execv(): deleting > gdbserver_user_state.socket_path before safe_execve() is

[PATCH v3 2/8] gdbstub: Try unlinking the unix socket before binding

2024-12-16 Thread Ilya Leoshkevich
In case an emulated process execve()s another emulated process, bind() will fail, because the socket already exists. So try deleting it. Note that it is not possible to handle this in do_execv(): deleting gdbserver_user_state.socket_path before safe_execve() is not correct, because the latter may