Re: [PATCH] tools: hv: handle EINTR in hv_fcopy_daemon

2017-09-05 Thread Olaf Hering
On Tue, Sep 05, KY Srinivasan wrote: > Were you planning on sending a patch for this. No, not yet. I dont know how SA_RESTART works. Olaf signature.asc Description: PGP signature

RE: [PATCH] tools: hv: handle EINTR in hv_fcopy_daemon

2017-09-05 Thread KY Srinivasan
er-V CORE AND DRIVERS > ; open list > Subject: Re: [PATCH] tools: hv: handle EINTR in hv_fcopy_daemon > > On Fri, Aug 25, Vitaly Kuznetsov wrote: > > > Shall we request SA_RESTART with sigaction() in all three daemons instead? > > If that works better, probably yes. > > Olaf

Re: [PATCH] tools: hv: handle EINTR in hv_fcopy_daemon

2017-08-25 Thread Olaf Hering
On Fri, Aug 25, Vitaly Kuznetsov wrote: > Shall we request SA_RESTART with sigaction() in all three daemons instead? If that works better, probably yes. Olaf signature.asc Description: PGP signature

Re: [PATCH] tools: hv: handle EINTR in hv_fcopy_daemon

2017-08-25 Thread Vitaly Kuznetsov
Olaf Hering writes: > If strace attaches to the daemon pread returns with EINTR, and the > process exits. Catch this case and continue with the next iteration. > > Signed-off-by: Olaf Hering > --- > tools/hv/hv_fcopy_daemon.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/tools/hv/h

[PATCH] tools: hv: handle EINTR in hv_fcopy_daemon

2017-08-25 Thread Olaf Hering
If strace attaches to the daemon pread returns with EINTR, and the process exits. Catch this case and continue with the next iteration. Signed-off-by: Olaf Hering --- tools/hv/hv_fcopy_daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/hv/hv_fcopy_daemon.c b/tools/hv/hv_fcopy_d