@@ -140,9 +140,9 @@ public static void Initialize()
140140 Initialize ( setSysArgv : true ) ;
141141 }
142142
143- public static void Initialize ( bool setSysArgv = true )
143+ public static void Initialize ( bool setSysArgv = true , bool initSigs = false )
144144 {
145- Initialize ( Enumerable . Empty < string > ( ) , setSysArgv : setSysArgv ) ;
145+ Initialize ( Enumerable . Empty < string > ( ) , setSysArgv : setSysArgv , initSigs : initSigs ) ;
146146 }
147147
148148 /// <summary>
@@ -153,8 +153,9 @@ public static void Initialize(bool setSysArgv = true)
153153 /// more than once, though initialization will only happen on the
154154 /// first call. It is *not* necessary to hold the Python global
155155 /// interpreter lock (GIL) to call this method.
156+ /// initSigs can be set to 1 to do default python signal configuration. This will override the way signals are handled by the application.
156157 /// </remarks>
157- public static void Initialize ( IEnumerable < string > args , bool setSysArgv = true )
158+ public static void Initialize ( IEnumerable < string > args , bool setSysArgv = true , bool initSigs = false )
158159 {
159160 if ( ! initialized )
160161 {
@@ -164,7 +165,7 @@ public static void Initialize(IEnumerable<string> args, bool setSysArgv = true)
164165 // during an initial "import clr", and the world ends shortly thereafter.
165166 // This is probably masking some bad mojo happening somewhere in Runtime.Initialize().
166167 delegateManager = new DelegateManager ( ) ;
167- Runtime . Initialize ( ) ;
168+ Runtime . Initialize ( initSigs ) ;
168169 initialized = true ;
169170 Exceptions . Clear ( ) ;
170171
0 commit comments