From 12c2ebcfdf6abcb4c9f619ea1d0502729310c6e1 Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Thu, 21 Feb 2013 08:55:31 -0600 Subject: [PATCH] Use raise() instead of kill() for portability. --- src/melt/melt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 ) -- 2.39.2