vhost: do not generate signal when sendmsg fails
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 6 Mar 2018 10:43:25 +0000 (18:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commit7a36967029c0dc062bdc25fc28fb2c1d0bbca179
tree5151cd27754c2565441619a893c4ee2e19904b10
parent71d93e9dd6492c4817ba3f41b6c5f6fb729b7af9
vhost: do not generate signal when sendmsg fails

More precisely, do not generate a SIGPIPE signal if the peer
has closed the connection. Otherwise, it will terminate the
process by default. As a library, we should avoid terminating
the application process when error happens and just need to
return with an error.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/socket.c