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.
1 file changed
tree: be38e3da2a268ee5dc2524481943bbad5980de7c
  1. Android.mk
  2. l2tp.c
  3. mtpd.c
  4. mtpd.h
  5. pptp.c