simple clients: add signal handler for clean exit
authorPekka Paalanen <ppaalanen@gmail.com>
Tue, 13 Dec 2011 10:09:09 +0000 (12:09 +0200)
committerPekka Paalanen <ppaalanen@gmail.com>
Thu, 22 Dec 2011 09:27:50 +0000 (11:27 +0200)
commit88e60fc2baf1e01028a061686b8203c3ad1b129b
treef91eb34ddc458ea1c4b94150e55e4a087b8059fd
parent3429a72597044a82f6ab2b4f5530f9489d6feff9
simple clients: add signal handler for clean exit

Add signal handler for SIGINT to simple-egl and simple-shm, so they can
be exited voluntarily, without killing them. Later we can add clean-up
code and destructors, and check with valgrind for leaks and errors.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/simple-egl.c
clients/simple-shm.c