]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make me ill
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Sep 2008 22:09:40 +0000 (22:09 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 23 Sep 2008 22:09:40 +0000 (22:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9632 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch.c

index 19f454195db6e6254af9ddc27b372f08130ad39f..a8759b0784aa3bc7995039eeec1e24b1f09ffd9e 100644 (file)
@@ -65,7 +65,7 @@ static HANDLE shutdown_event;
 /* signal handler for when freeswitch is running in background mode.
  * signal triggers the shutdown of freeswitch
 # */
-static void handle_SIGTERM(int sig)
+static void handle_SIGILL(int sig)
 {
        int32_t arg = 0;
        if (sig);
@@ -123,7 +123,7 @@ static int freeswitch_kill_background()
                }
 #else
                /* for unix, send the signal to kill. */
-               kill(pid, SIGTERM);
+               kill(pid, SIGILL);
 #endif
        }
 
@@ -547,7 +547,7 @@ int main(int argc, char *argv[])
                return 255;
        }
 
-       signal(SIGTERM, handle_SIGTERM);
+       signal(SIGILL, handle_SIGILL);
 
        if (nc) {
 #ifdef WIN32