diff Modules/main.c @ 77946:fcbd3bda7c0f 3.2

Fix issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
author Senthil Kumaran <senthil@uthcode.com>
date Wed, 04 Jul 2012 19:28:16 -0700
parents e832ffd0388f
children 526c6262d91f 1186d68715cc
line wrap: on
line diff
--- a/Modules/main.c	Tue Jul 03 13:15:03 2012 +0200
+++ b/Modules/main.c	Wed Jul 04 19:28:16 2012 -0700
@@ -673,7 +673,7 @@
         sts = run_command(command, &cf);
         free(command);
     } else if (module) {
-        sts = RunModule(module, 1);
+        sts = (RunModule(module, 1) != 0);
     }
     else {