OSDN Git Service

Added SIGWINCH handling and better cleanup
authorTan Chee Eng <me@tan-ce.com>
Fri, 30 Aug 2013 02:44:12 +0000 (10:44 +0800)
committerTan Chee Eng <me@tan-ce.com>
Fri, 30 Aug 2013 02:48:46 +0000 (10:48 +0800)
commit41ec6ea24f31f98cbb89c2dff0ff2578948351d4
treebe287ef387a6dc9a16c1e0702e9983aa474e7cf0
parent63485abe62002a80370e2b329fa1f3cff744eba1
Added SIGWINCH handling and better cleanup

Added a task to forward SIGWINCH from the client to the daemon via the
correct ioctl. Terminal window sizing now seems to work correctly.

Also added signal handler to catch signals which can cause the client to
terminate, allowing the client to restore stdin's termios. Previously,
killing the su client using (for example) SIGTERM would result in the
terminal being left in an unusable state.
Superuser/jni/su/daemon.c