in reply to Re^2: log level in modules
in thread log level in modules
use fork() to create threads
fork doesn't create threads*, it creates new processes which are copies of the parent. You're only sending the signal the parent process, so nothing changes the copies of the logger objects found in the child processes.
Even if you did create threads, Perl gives each thread a copy of every Perl variable except for variables that had been shared explicitly. You didn't create a shared variable that holds a logger object, and I doubt that the logger does this for you.
* — Except in Windows. fork is emulated using threads in Windows.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: log level in modules
by Anonymous Monk on Aug 21, 2009 at 18:11 UTC | |
by ikegami (Patriarch) on Aug 21, 2009 at 19:06 UTC | |
by Anonymous Monk on Aug 22, 2009 at 00:39 UTC | |
by ikegami (Patriarch) on Aug 22, 2009 at 03:32 UTC | |
by Anonymous Monk on Aug 24, 2009 at 13:55 UTC | |
|