X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=blootbot%2Fsrc%2FShm.pl;h=0c3116bedd9c065e7d13a071a08d586d3e00496e;hb=c70f4a4c6a2f9702ca47f78020e69790280cebca;hp=3ecf9b930aabbe4403b45240cf112df158d2d841;hpb=b3a5a95ca5df8451ef14be222f6a547ec8d68655;p=infobot.git diff --git a/blootbot/src/Shm.pl b/blootbot/src/Shm.pl index 3ecf9b9..0c3116b 100644 --- a/blootbot/src/Shm.pl +++ b/blootbot/src/Shm.pl @@ -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;