From: dms Date: Wed, 10 Jan 2001 14:55:53 +0000 (+0000) Subject: - forgot [] around gettimeofday. X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6e2adba4e941790143d1a516b12bfb018fa64392;p=infobot.git - forgot [] around gettimeofday. - select() added before first fork msg. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@236 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Misc.pl b/src/Misc.pl index ce25d77..236c1f9 100644 --- a/src/Misc.pl +++ b/src/Misc.pl @@ -87,7 +87,7 @@ sub timeget { if ($no_timehires) { # fallback. return time(); } else { # the real thing. - return gettimeofday(); + return [gettimeofday()]; } } @@ -611,6 +611,8 @@ sub Forker { $SIG{CHLD} = 'IGNORE'; $pid = eval { fork() }; return $noreply if $pid; # parent does nothing + + select(undef, undef, undef, 0.2); &status("fork starting for '$label', PID == $$."); &shmWrite($shm,"SET FORKPID $label $$");