commit | a7776544bd4d487667b3e55896432d255209c789 | [log] [tgz] |
---|---|---|
author | Chia-chi Yeh <chiachi@android.com> | Fri Jun 19 16:36:32 2009 +0800 |
committer | Chia-chi Yeh <chiachi@android.com> | Fri Jun 19 16:50:06 2009 +0800 |
tree | be38e3da2a268ee5dc2524481943bbad5980de7c | |
parent | 6c0e6ee6cf1cd6dda611adbc61766b2405416107 [diff] |
mtpd: Install signal handlers after the socket is connected. Connect() automatically restarts after a signal is received. If the signal handler does not terminate the process, it might get blocked for few minutes while the remote server is unreachable. Delaying the installation of signal handlers fixes this problem since the default handlers do terminate the process.