]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Shm.pl
- if shmRead fails, try openSHM.
[infobot.git] / src / Shm.pl
index 084395865f2851d20ec39d6124cfd45e130046b6..40d9f38fe2e2f0e6827760259b2fb4723b7903d1 100644 (file)
@@ -44,6 +44,8 @@ sub shmRead {
        return $retval;
     } else {
        &ERROR("shmRead: failed: $!");
+       ### TODO: if this fails, never try again.
+       &openSHM();
        return '';
     }
 }