From 6e2adba4e941790143d1a516b12bfb018fa64392 Mon Sep 17 00:00:00 2001 From: dms Date: Wed, 10 Jan 2001 14:55:53 +0000 Subject: [PATCH] - 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 --- src/Misc.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 $$"); -- 2.39.5