git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@181
c11ca15a-4712-0410-83d8-
924469b57eb5
my $shmmsg = &shmRead($shm);
$shmmsg =~ s/\0//g; # remove padded \0's.
+ return if ($$ != $main::bot_pid); # fork protection.
+
foreach (split '\|\|', $shmmsg) {
&VERB("shm: Processing '$_'.",2);
$conn->new_send($1,$2);
$dcc{'SEND'}{$who} = time();
}
+ } elsif (/^SET FORKPID (\S+) (\S+)/) {
+ $forked{$1}{PID} = $2;
} elsif (/^DELETE FORK (\S+)$/) {
delete $forked{$1};
} elsif (/^EVAL (.*)$/) {