summaryrefslogtreecommitdiffstats
path: root/macosx/main.mm
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/main.mm')
-rw-r--r--macosx/main.mm8
1 files changed, 7 insertions, 1 deletions
diff --git a/macosx/main.mm b/macosx/main.mm
index 78f659e03..b07c7f1c8 100644
--- a/macosx/main.mm
+++ b/macosx/main.mm
@@ -1,4 +1,4 @@
-/* $Id: main.mm,v 1.2 2004/10/26 20:49:41 titer Exp $
+/* $Id: main.mm,v 1.3 2005/11/25 15:04:35 titer Exp $
This file is part of the HandBrake source code.
Homepage: <http://handbrake.m0k.org/>.
@@ -6,7 +6,13 @@
#include <Cocoa/Cocoa.h>
+void SigHandler( int signal )
+{
+ [NSApp terminate: NULL];
+}
+
int main( int argc, const char ** argv )
{
+ signal( SIGINT, SigHandler );
return NSApplicationMain( argc, argv );
}