]> git.donarmstrong.com Git - infobot.git/commitdiff
fixed up return vals for loadMyModule()
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 23 Sep 2000 12:45:55 +0000 (12:45 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 23 Sep 2000 12:45:55 +0000 (12:45 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@132 c11ca15a-4712-0410-83d8-924469b57eb5

src/modules.pl

index 9c49f56c494c3c47cd3479b0f209635fbb5ccec8..792408449c3bd7278f7154900d602fa7762e8cc6 100644 (file)
@@ -281,7 +281,7 @@ sub loadMyModule {
     # call reloadModule() which checks age of file and reload.
     if (grep /\/$modulebase$/, keys %INC) {
        &reloadModule($modulebase);
-       return;
+       return 1;       # depend on reloadModule?
     }
 
     if (! -f $modulefile) {
@@ -302,9 +302,10 @@ sub loadMyModule {
            &shutdown() if (defined $shm and defined $dbh);
        } else {                        # child.
            &delForked($modulename);
+           exit 1;
        }
 
-       exit 1;
+       return 0;
     } else {
        $moduleAge{$modulefile} = (stat $modulefile)[9];