]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/Shm.pl
allow geeky forgetting of CMD:s
[infobot.git] / blootbot / src / Shm.pl
index 3ecf9b930aabbe4403b45240cf112df158d2d841..0c3116bedd9c065e7d13a071a08d586d3e00496e 100644 (file)
@@ -87,7 +87,8 @@ sub shmWrite {
        $str = $read ."||". $str;
     }
 
-    if (!shmwrite($key, '', $position, $size)) {
+    if (!shmwrite($key, $str, $position, $size)) {
+       &DEBUG("shmWrite($key, $str)");
        &ERROR("shmWrite: failed: $!");
     }
 }
@@ -142,9 +143,9 @@ sub addForked {
        if ($count > 3) {       # 3 seconds.
            my $list = join(', ', keys %forked);
            if (defined $who) {
-               &msg($who, "exceeded allowed forked count: $list");
+               &msg($who, "exceeded allowed forked count (shm $shm): $list");
            } else {
-               &status("Fork: I ran too many forked processes :) Giving up $name.");
+               &status("Fork: I ran too many forked processes :) Giving up $name. Shm: $shm");
            }
 
            return 0;