Proc :: Æ÷Å©

PROC :: PROCKINGÀº Æ÷Å© ¹× µ¥¸óÀ» Æ÷Å© ¹× µ¥¸ó È­ÇÏ´Â µµ±¸ ¼¼Æ®¸¦ Á¦°øÇÏ´Â PERL ¸ðµâÀÔ´Ï´Ù.
Áö±Ý ´Ù¿î·Îµå

Proc :: Æ÷Å© ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Perl Artistic License
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Fabrice DULAUNOY
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://search.cpan.org/~fdulau/Tie-Hash-RegexKeys-1.2/RegexKeys.pm

Proc :: Æ÷Å© ű×


Proc :: Æ÷Å© ¼³¸í

PROC :: FORKingÀº Æ÷Å© ¹× µ¥¸óÀ» Æ÷Å© ¹× µ¥¸ó È­ÇÏ´Â µµ±¸ ¼¼Æ®¸¦ Á¦°øÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù. Proc :: ForkingÀº Æ÷Å© ¹× ´ëÁ¶ÁÖÈ­ ÇÒ ¼öÀÖ´Â µµ±¸ ¼¼Æ®¸¦ Á¦°øÇÏ´Â Perl ¸ðµâÀÔ´Ï´Ù .Synopsis #! / usr / usr / enl / perlÀº ¾ö°ÝÇÕ´Ï´Ù. proc :: Æ÷Å©¸¦ »ç¿ëÇϽʽÿÀ; µ¥ÀÌÅÍ :: Dumper; »ç¿ë ½Ã°£ :: QW (USLEEP)¸¦ °í¿ëÇÕ´Ï´Ù. # ¸¶ÀÌÅ©·Î ¼ö¸éÀ» Çã¿ëÇÏ·Á¸é $ f = proc :: Æ÷Å© -> new (); $ sig {kill} = $ sig {term} = $ sig {int} = sub {$ f-> killall_childs; ¼ö¸é 1; Á¾·á}, $ f-> desemonize (## uid => 1000, ## gid => 1000, ## home => "/ tmp", pid_file => "/tmp/master.pid"); ¿­±â (stdout, ">> / tmp / master.log"); ³» $ NBR = 0; ³» $ timemout; (1) {($ NBR <20) {my $ extrail = "´Ù¸¥ ¸Å°³ º¯¼ö"; my ($ status $ pid $ error) = $ f-> fork_child (function => func, name => "new_name. ##", args => , pid_file = > "/tmp/fork.##.pid", uid => 1000, gid => 1000, home => "/ tmp", max_load => 5, max_mem => 185000000, ¸¸·á => 10, # expiration_auto => 1, ); if ($ status == 4) #·Îµå°¡ ³ô°Ô {ÀÎ¼â µÊ "ÃÖ´ë·Îµå°¡ µµ´ÞµÇ¸é, ÀÛÀº napn"; USLEEP (100000); ´ÙÀ½; } ELSIF ($ status) # ´Ù¸¥ Á¾·ùÀÇ ¿À·ù {print "pid = $ pidt error = $ errorn"ÀÎ °æ¿ì; Àμ⠴ýÆÛ ($ F-> LIST_NAMES ()); Àμ⠴ýÆÛ ($ F-> LIST_PIDS ()); }} $ nbr = $ f-> pid_nbr; MY ($ n, @dp, @dn) = $ f-> ¸¸±â; if ($ n) {Àμâ dumper (@DP); } "FREE = N"Àμâ; USLEEP (100000); # ÀÛ¾÷ swapper°¡ ¹«·á ¸®¼Ò½º¸¦ ¾ò±â À§ÇØ ÀÛÀº ¼ö¸éÀ» ÀÔ·ÂÇÏ´Â °ÍÀÌ ÁÁ½À´Ï´Ù.} sub func {my $ ref = shift; my @args = @ $ ref; My ($ µ¥ÀÌÅÍ, $ time_out, $ sockc) = @args; $ sig {usr1} = sub {my $ log, ">> / tmp / log.s"; $ log "signal usr1 repencedn"À» ÀμâÇϽʽÿÀ. $ log¸¦ ´Ý½À´Ï´Ù; }; if (! $ time_out) {$ time_out = 3; } My $ FF, ">> / TMP / LOGLIST"¸¦ ¿±´Ï ´Ù. $ FF $$, "½ÃÀÛ ½Ã°£ =", $ ^ t; $ FF ´Ý±â; (1 .. 4) {³» $ FH ¿­±â ">> / TMP / log"; if (defined $ fh) {print $ fh "tmout = $ time_out". ½Ã°¢ . "pid = $$ cwd =". CWD :: CWD (). "À̸§ = $ 0n"; $ fh-> ´Ý±â; } ¼ö¸é $ TIME_OUT + RAND (5); }} ¿ä±¸ »çÇ× : ¡¤ Perl ¡¤ IO :: File ¡¤ CWD ¡¤ SYS ::·Îµå ¿ä±¸ »çÇ× : ¡¤ Perl. ¡¤ io :: File. ¡¤ CWD. ¡¤ SYS :: Load.


Proc :: Æ÷Å© °ü·Ã ¼ÒÇÁÆ®¿þ¾î

UI :: Dialog.

UI :: Dialog Project´Â ¹é¿£µå ŽÁö ÇÁ·Î¼¼½ºÀÇ ¿ì¼± ¼øÀ§ ¼ø¼­¸¦ Áö¿øÇÕ´Ï´Ù. ...

205

´Ù¿î·Îµå