| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> nice :) <1> I'm going to go lie in bed and dream of my gf and goto sleep. <1> Ciao. <0> kk, gnite :) <1> night. <0> damn i envy people with a really fancy and educated accent when talking english <0> it sounds so pure and... beautifull <0> :) <2> pfff <2> anyone know how to run a tcp server in the background on freebsd? <2> ;/ <2> like the one i have atm it doesnt return back to the terminal etc <2> = <2> =[ <3> kthx^, nohup and suspend? <2> im new to nix api trying to port my win32 chat server ;/
<2> nohup doesnt look right <3> do you have nohup on fbsd? <2> 1sec <2> no <3> oh, hrm... <2> like psybnc,unreal run in the background <2> and i didnt find any obvious coding to achieve this <3> in that case just run it with an & at the end and don't log out of your terminal, or rtfm on daemonizing your program. There's a couple steps you need to follow that I don't remember off hand. <2> manual? <3> http://www.linuxprofilm.com/articles/linux-daemon-howto.html will be pretty accurate <2> mm <2> looks good thx <4> hrm <3> I'd recommend catching SIGHUP as well to either terminate or refresh your configuration files, and a different SIG to gracefully exit. <2> exit() not good enough? <5> hi gambit <3> heya OrageTide :) <3> kthx^, Well you want to be able to terminate it remotely, right? :) <5> i like SIGINT and SIGTERM to gracefully exit. <2> heh kill -9 woirks good enuff <3> s'not very graceful if you just let it kill you out of hand but whatever :) <5> kill -9 is a terrible way to go. it won't flush any buffered data resulting in truncation of logs and datafiles <5> all you need is like term_handler() { if(file1) fclose(file1); if(file2) fclose(file2); ... } <5> although you're not supposed to call close inside a signal handler. i don't really care. <2> k <2> hrmm <2> i used that linux skelton and it aint working ;/ <2> WOOT <2> <3 <2> whats the nix version of CreateThread ? <6> There is none <2> isnt it thrcreate or sumthin <6> No, there are no threads in UNIX. <6> http://www.cs.nmsu.edu/~jcook/Tools/pthreads/pthreads.html This might help some. <2> =o <2> ah fork > threads <6> Well, there's pthreads <6> Which does some magic and give syou threads. <6> And it's mostly portable <6> iirc even to win32 <2> win32 needs fork <6> Uh. <6> Sure. <6> win32 needs more than fork. <2> lol <2> vista i saw is getting WSAPoll <3 <6> yay! http://www.cocoadev.com/index.pl?NSThread <6> Okay? <0> is there a way to "unbind" a socket? or is that simply close(serversocket); ? <2> expected init-declarator before "int" <2> what does this mean? <2> nvm <7> have you left off a ; <2> typo in prototype functions <7> so what did you put before int <2> like <2> in example.h <2> my function(blah blah) <2> no ; <2> ;D <2> g++ Tippin.cpp -o test
<2> doesnt work wtf <7> if it is a prototype you put a ; on the end <7> example: int myfucn(int,*char); <2> no lol <2> like it compile with a few warning <2> but no output file <2> ;/ <2> what is function to convert string to lowercase on nix? <2> nvm <7> there isn't one <7> use tolower() on each char yourself <2> yeah <2> is there va_start for nix? <2> nvm <7> you could look in a few man files <7> start with that one <2> w00t finished porting my ircd to nix <2> <3 <2> and it doesnt work! <8> mornin <9> Hello Mr 16-bit <10> hey <10> can someone tell me why scanf() is so ****ing <11> ? <10> howcome its so bad <11> its not <11> only if you use it bad <10> i go "scanf("%d", x);" then "printf("%d", x);" ----- if i type a really huge number it stuffs up <11> because you used it wrong its <11> scanf("%d",&x); <11> :) <11> try that :p <11> scanf uses address of varibles <10> it doesnt compile <10> oh yes it does <11> :) <10> see its still is wacked up <11> an interger only can have a certain amount of number <11> try using a long <11> if you using a use number <11> huge number <10> a long? <12> long long <10> long long? <12> long long int <12> 64 bits <10> http://pastebin.ca/76382 <10> tell me why it doesn't work!!! <12> yeah, we're just going to take orders just like that. <10> could you please take a look and see what's wrong with my work? <11> lol what is that? <12> well, an int can only store 32 bits <10> 4 byte? <10> 4 characters? <12> no <12> well, yes, but.. <10> ??? <13> 65535 <12> I don't think you really understand <12> rip: that's 16 bits <11> remember to flush too <13> he sounded like he was still in 1993 <13> :/ <10> flush? <10> i just started... <10> learning c that is <10> so sorry if i don't understand <10> please feel free to explain <12> g-gao: rtfm <13> flush is for toilets <10> mrMister: stfu <13> heh <12> no more help from me, then. <11> lol
Return to
#c or Go to some related
logs:
#politics comet SUSE10 #beginner #nhl #politics #windowsxp outlook.exe /rpcdiag referral #microsoft #redhat #cisco
|
|