evas/cserve2: Fix interrupt on select in edje_cc
authorJean-Philippe Andre <jp.andre@samsung.com>
Fri, 29 Nov 2013 02:45:19 +0000 (11:45 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Fri, 29 Nov 2013 06:47:57 +0000 (15:47 +0900)
commit62093d99d4d73668c1133b13fb496baf5e56be7a
tree7ff8cd3d38e1743490cc3bfe9e63d66ef26124ba
parent4f33c81bdbf94cf15b7cf56fcb05b849f8f99581
evas/cserve2: Fix interrupt on select in edje_cc

Summary:
Block SIGCHLD during select().
This fixes a bug with edje_cc when EVAS_CSERVE2=1: Fixes T464.

select() used to return prematurately with EINTR because the
app received some unexpected signals. In particular SIGCHLD
is received when a child terminates, but this is not a reason
to cancel the image load.

In theory, all blocked signals in pselect() should be pending
until pselect returns, so any SIGCHLD should still trigger
the app's signal handler.

Reviewers: cedric

CC: raster, cedric
Maniphest Tasks: T464

Differential Revision: https://phab.enlightenment.org/D357
src/lib/evas/cserve2/evas_cs2_client.c