OSDN Git Service

sens: fix server crash after stopping the poll client
authorOctavian Purdila <octavian.purdila@intel.com>
Mon, 24 Nov 2014 13:47:27 +0000 (15:47 +0200)
committerAdriana Reus <adriana.reus@intel.com>
Wed, 3 Dec 2014 13:56:06 +0000 (15:56 +0200)
commitc6f0e4e4838f493a7e0d97b48743a6b60abc9e2e
tree34057b52cf9177d025cbb9a86a98c6b3580f6f87
parent48e21a62bb11d3640d278b50ad238d9595a07315
sens: fix server crash after stopping the poll client

If the poll client is stopped (killed) the server will crash due to
SIGPIPE. Fix this by intercepting SIGPIPE and clearing the client file
to avoid further prints to it.

Change-Id: I588b9c098634e2eb5cec9dd003e4f9a3be188c3f
Signed-off-by: Octavian Purdila <octavian.purdila@intel.com>
sens.c