From: Brian Matherly Date: Thu, 21 Feb 2013 14:55:31 +0000 (-0600) Subject: Use raise() instead of kill() for portability. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=12c2ebcfdf6abcb4c9f619ea1d0502729310c6e1;p=mlt Use raise() instead of kill() for portability. --- diff --git a/src/melt/melt.c b/src/melt/melt.c index 8c8aba12..ddb33359 100644 --- a/src/melt/melt.c +++ b/src/melt/melt.c @@ -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 )