Skip to content

Commit

Permalink
Merge pull request #27 from dragom/master
Browse files Browse the repository at this point in the history
removed not used signal SIGUSR1
  • Loading branch information
sandeepmistry committed Feb 16, 2014
2 parents 7201697 + e107f8a commit def71ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/l2cap-ble.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ int main(int argc, const char* argv[]) {
signal(SIGINT, signalHandler);
signal(SIGKILL, signalHandler);
signal(SIGHUP, signalHandler);
signal(SIGUSR1, signalHandler);

prctl(PR_SET_PDEATHSIG, SIGINT);

Expand Down Expand Up @@ -109,6 +108,8 @@ int main(int argc, const char* argv[]) {
if (-1 == result) {
if (SIGINT == lastSignal || SIGKILL == lastSignal) {
break;
} else if (SIGHUP == lastSignal) {
result = 0;
}
} else if (result && FD_ISSET(serverL2capSock, &afds)) {
sockAddrLen = sizeof(sockAddr);
Expand Down

0 comments on commit def71ed

Please sign in to comment.