{"action":"opened","issue":{"url":"https://api.github.com/repos/xelerance/xl2tpd/issues/98","repository_url":"https://api.github.com/repos/xelerance/xl2tpd","labels_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/98/comments","events_url":"https://api.github.com/repos/xelerance/xl2tpd/issues/98/events","html_url":"https://github.com/xelerance/xl2tpd/issues/98","id":132628918,"number":98,"title":"start_pppd failing causes SIGTERM to be sent to all processes","user":{"login":"Climax777","id":768925,"avatar_url":"https://avatars.githubusercontent.com/u/768925?v=3","gravatar_id":"","url":"https://api.github.com/users/Climax777","html_url":"https://github.com/Climax777","followers_url":"https://api.github.com/users/Climax777/followers","following_url":"https://api.github.com/users/Climax777/following{/other_user}","gists_url":"https://api.github.com/users/Climax777/gists{/gist_id}","starred_url":"https://api.github.com/users/Climax777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Climax777/subscriptions","organizations_url":"https://api.github.com/users/Climax777/orgs","repos_url":"https://api.github.com/users/Climax777/repos","events_url":"https://api.github.com/users/Climax777/events{/privacy}","received_events_url":"https://api.github.com/users/Climax777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-10T07:47:22Z","updated_at":"2016-02-10T07:47:22Z","closed_at":null,"body":"Notice the last line of the log excerpt, the PID of -1 causes `kill` to send TERM to all processes. This causes the whole system to fail. \r\n\r\nI've been searching for the cause of my system crashing randomly, and at long last I've found it\r\n\r\n```\r\n28530 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"/usr/sbin/pppd\"                                                                                                                                                  \r\n28531 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"passive\"                                                                                                                                                         \r\n28532 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"nodetach\"                                                                                                                                                        \r\n28533 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"10.152.1.1:10.152.3.82\"                                                                                                                                          \r\n28534 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"refuse-pap\"                                                                                                                                                      \r\n28535 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"auth\"                                                                                                                                                            \r\n28536 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"require-chap\"                                                                                                                                                    \r\n28537 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"file\"                                                                                                                                                            \r\n28538 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"/etc/ppp/options.xl2tpd\"                                                                                                                                         \r\n28539 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: \"/dev/pts/479\"                                                                                                                                                    \r\n28540 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: start_pppd: unable to fork(), abandoning!                                                                                                                         \r\n28541 Feb 10 07:26:19 ip-172-30-0-143 xl2tpd[830]: Call established with 196.34.134.31, Local: 50256, Remote: 2143, Serial: 1171                                                                                     \r\n28542 Feb 10 07:26:20 ip-172-30-0-143 xl2tpd[830]: Can not find tunnel 9481 (refhim=0)                                                                                                                               \r\n28543 Feb 10 07:26:20 ip-172-30-0-143 xl2tpd[830]: network_thread: unable to find call or tunnel to handle packet.  call = 9697, tunnel = 9481 Dumping.                                                              \r\n28544 Feb 10 07:26:20 ip-172-30-0-143 xl2tpd[830]: check_control: Received out of order control packet on tunnel 19097 (got 18, expected 19)                                                                         \r\n28545 Feb 10 07:26:20 ip-172-30-0-143 xl2tpd[830]: handle_packet: bad control packet!                                                                                                                                \r\n28546 Feb 10 07:26:20 ip-172-30-0-143 xl2tpd[830]: Maximum retries exceeded for tunnel 15964.  Closing.                                                                                                              \r\n28547 Feb 10 07:26:20 ip-172-30-0-143 xl2tpd[830]: Terminating pppd: sending TERM signal to pid -1  \r\n```"}}