| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Comments:
<0> You're the master... <0> You're the best... <0> (Should I go on?) <0> why isn't the freckin thing working :( <1> fsck <0> Anyone? <0> I'm getting a SIG{CHLD} from a process before that process even puts in the logfile that it's initialising <0> Hey, now Listener does put something in the logfie <0> file* <0> The SIG{CHLD} is indeed coming from Listener <0> apparantly it exits in these lines: <0> sub SigReceived { <0> my $sig = shift; <0> logmsg($name, "Received SIG$sig, Exiting."); <0> exit; <0> }
<0> $SIG{ALRM} = $SIG{TERM} = $SIG{INT} = \&SigReceived; <0> but it doesn't logmsg any "Received SIG$sig" ... <0> botje? pravus? <0> shouldn't there be a ; after the } of the sub..? <0> Hey ! A captured erro! <0> error* <0> [Sun Feb 26 14:46:36 2006][ERR- ]Captured error: print() on closed filehand <0> le LOGFILE at functions.pl line 34. <0> Closed filehandle... :( <0> open LOGFILE, ">>./uplink2.log" or die("Error: Couldn't open logfile: $!");; <0> print LOGFILE $msg,"\n"; <0> close LOGFILE; <0> how could that be closed :/ <0> aaaaaaaaaaaaaaaaaaaaaaaargh <2> a rather sadistic way to spend ones sunday <2> sdakota am i to understand that this is a multi-processed script? <0> yes, linuxnohow <2> just remove the close LOGFILE and try it <0> but.. <0> o.o <0> okay <2> it will close automatically when it goes out of scope <0> Yea but... <0> Now it spawns no module at all O. <0> aaaa:( <0> okay <0> now it does open Listener... <0> but not Administration nor ClientMaster... <0> And it doesn't close Listener... <0> No perl zombie processes... <0> But the listener isn't even listening at the socket :( <0> AARGH <0> I'm getting CRAZY of this :'( <0> I think I'm gonna start all over <3> and use POE ? >:) <0> POE... <3> you know it makes sense, <0> I heard so much about poe but i still have no idea what it is :( <3> good time to learn. <0> Yep <0> so where can I find anything about it? <3> save much hair pulling. <0> on cpan, ofcourse. <3> the docs that come with it, naturally. <3> and at http://poe.perl.org/ <3> there is even a cookbook <3> perlbot: POE <4> POE - multitasking and network framework for perl - http://poe.perl.org/ - POE Cookbook: http://poe.perl.org/?POE_Cookbook <2> just out of morbid curiousity, sdakota what is this program supposed to do <0> linuxnohow: It's a server. <0> Like a game server. <0> I'm currently looking at poe, and in my current state, I don't understand even **** of it. <5> POE FTW LOL OMG! <6> digging in lwp manuals right now and then with a gumbybrain. <0> perlbot: ftw <4> for the win <3> Parallel Orgasm Engine
<0> lal <0> Unreliable Datagram Protocol <0> ? <3> Potent Object Engineering. <0> I'll just make one file which just listens at a socket and if it gets a request, spawns a client....... <0> but that will mean that a huge server has about 500 processes ! <0> ugh <0> this is IMPOSSIBLE! <7> POE is the answer <5> Potentially Obliviating Enterprise, BinGOs <3> hey i've written an ircd in POE how hard can you pokey system be. :p <5> But we lost the question <7> its really not any harder than what you're trying to do now: http://poe.perl.org/?Evolution_of_a_POE_Server <3> s/you/your/ <5> I coded an IRC bot with POE, and it's outside mowing my lawn right now! <3> yay! <3> Gr***BOT <3> erm ... that'll be a stoned GumbyBRAIN <5> Wouldn't that be Cr***BOT? <3> HashBOT <3> sdakota: hint POE::Component::Server::Echo does both TCP and UDP. <3> i'm ace like that. <3> now. <0> a script using POE sessions, is that only one process or does that call multiple processes automatically too? <3> my bath it overflowth <0> jeez <0> POE is like a server ready to be used <0> like, you don't have to program anything <7> sdakota, its all in once process <8> Hello BinGOs :) <0> dacoffey: handy <2> well it depends.. if you hand POE a filehandle, it will fudge parallelism with non-blocking reads via select() <2> if you hand it a code-ref, it will fork <9> help <9> why I can't launch this command with Perl ? <9> sed -nE '/^\.if \!?def/s/.*\(([[:alnum:]_]+)\).*/\1/p' Makefile | sort -u <9> system $command; <2> too many pipes perhaps <0> are there any books on POE? <10> if i have something like foreach $line (@lines) {...} how do i make a step inside that loop due to lets say a fulfilled condition? <11> one of next/last/redo <10> thanks, i'll look those commands up <10> next $line, or next @lines? <12> I love England <12> 'The chairman of the Commission for Racial Equality (CRE) said we should "allow people to offend each other".' <12> "One point of Britishness is that people can say what they like about the way we should live, however absurd, however unpopular it is," said Sir Trevor. <0> yingfan, just next. <0> yingfan, you can label your loops if you want to break another loop as the one you're currently in, but if you're just in one loop or you want to close the inner one, just call them without arguments. <10> i see, thanks <0> Wow <0> Perl spent just 40 seconds, spawning 500 POE sessions, increasing a number in the heap 5000 times, then closing all 500 sessions <13> bloody slow, eh? <0> yep <0> ^_^ <0> And the server will probably never handle 500 incoming connections at one time, so that's okay... <0> Still... <0> I have no idea how I'm gonna make this server. <14> sdakota: what server? <0> I had a very good idea at the older server, but it failed all things <0> Jeez, I was getting crazy at that thing <0> The game server, soun <0> sound* <0> crazy of* <0> jeez... <0> It was like - nothing was working <0> Processes spawning the wrong processes, processes never answering, processes doing very strange things, etcetera... It just wouldn't stop <0> I hope POE will work better. <15> Stem! <0> Stem? <15> uri! <0> uri! <13> heh
Return to
#perl or Go to some related
logs:
gentoo emerging pygame #lisp regex in perrl #oe #lisp monowall.img korhojoa grep -A no dash block flash in konqueror ubuntu no dhcpoffers received
|
|