]> git.donarmstrong.com Git - infobot.git/commitdiff
minor fix to loadmymodules
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 16 Dec 2000 12:31:38 +0000 (12:31 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Sat, 16 Dec 2000 12:31:38 +0000 (12:31 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@205 c11ca15a-4712-0410-83d8-924469b57eb5

src/modules.pl

index a56f3f3764fd9b2c00a78e748ba813a3a6e5e583..75b64ba4e64141416fd3996550e4bb24ae301dad 100644 (file)
@@ -306,9 +306,7 @@ sub loadMyModule {
     eval "require \"$modulefile\"";
     if ($@) {
        &ERROR("cannot load my module: $modulebase");
-       if ($bot_pid == $$) {   # parent.
-           &shutdown() if (defined $shm and defined $dbh);
-       } else {                        # child.
+       if ($bot_pid != $$) {   # child.
            &DEBUG("b4 delfork 2");
            &delForked($modulebase);
            exit 1;