From b538a5fad096764a686a68f843f74ee36d3c7ef1 Mon Sep 17 00:00:00 2001 From: Baruch Sterin Date: Tue, 1 Feb 2011 11:13:53 -0800 Subject: 1. Replace system() with a function that responds to SIGINT. 2. Add functions to cleanup temporary files on SIGINT. 3. Fix bugs related to signal handling. --- src/base/cmd/cmdLoad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/base/cmd/cmdLoad.c') diff --git a/src/base/cmd/cmdLoad.c b/src/base/cmd/cmdLoad.c index 7a83385c..8ff03282 100644 --- a/src/base/cmd/cmdLoad.c +++ b/src/base/cmd/cmdLoad.c @@ -22,6 +22,7 @@ #include "mainInt.h" #include "cmd.h" #include "cmdInt.h" +#include "utilSignal.h" ABC_NAMESPACE_IMPL_START @@ -72,7 +73,7 @@ int CmdCommandLoad( Abc_Frame_t * pAbc, int argc, char ** argv ) } Vec_StrPush( vCommand, 0 ); // run the command line - if ( system( Vec_StrArray(vCommand) ) ) + if ( Util_SignalSystem( Vec_StrArray(vCommand) ) ) { Abc_Print( -1, "The following command has returned non-zero exit status:\n" ); Abc_Print( -1, "\"%s\"\n", Vec_StrArray(vCommand) ); -- cgit v1.2.3