]> git.sesse.net Git - mlt/commitdiff
Use raise() instead of kill() for portability.
authorBrian Matherly <pez4brian@yahoo.com>
Thu, 21 Feb 2013 14:55:31 +0000 (08:55 -0600)
committerBrian Matherly <pez4brian@yahoo.com>
Thu, 21 Feb 2013 14:55:31 +0000 (08:55 -0600)
src/melt/melt.c

index 8c8aba12754422d76b7231a9bcb5e3e83131b3db..ddb33359641893a74d3fab02f98d6b9b9600e152 100644 (file)
@@ -55,10 +55,8 @@ static void abnormal_exit_handler(int signum)
        // The process is going down hard. Restore the terminal first.
        term_exit();
        // Reset the default handler so the core gets dumped.
-       signal(signum, SIG_DFL);
-#ifndef WIN32
-       kill(getpid(), signum);
-#endif
+       signal( signum, SIG_DFL );
+       raise( signum );
 }
 
 static void transport_action( mlt_producer producer, char *value )