Forgot about that. Kubuntu 7.10, so that's:
linux 2.6.22
glibc 2.6.1
gcc 4.1.3
ncurses 5.6
The new version behaves and behaves the same in both terminals.
Type: Posts; User: heras
Forgot about that. Kubuntu 7.10, so that's:
linux 2.6.22
glibc 2.6.1
gcc 4.1.3
ncurses 5.6
The new version behaves and behaves the same in both terminals.
The shell that is built into my editor has a white back ground (by default, before running your code), my terminal starts out black. Both get messed up afterwards.
A quick search pointed out to me that it has been suggested to you at least 3 times already:
- not to use void main
- do proper indentation
but it does not appear to be registering.
Thanks.
So I guess "good practice" depends on what kind of daemon you're making and what it does.
What will happen then when something tries to write to any of the closed descriptors? As opposed to when you connect them to /dev/null like so:
for (i=getdtablesize();i>=0;--i) close(i); /*...
Another model, used by Trolltech for their Qt:
- Develope an open, free(GPL) and gratis tool kit. Get gratis help from communities such as that of KDE.
- Sell licenses without the "restrictions" of...
Ok. I thought you were suggesting that not reaching advertised speeds was due to other users on the networks as an only factor. My bad, probably.
I doubt that that is the case. In stead I think it has to do with the fact that DSL speeds degrade sharply with increasing distance to the phone exchange.
A while back there was an interesting article about the Open Graphics Project on kerneltrap.org. http://wiki.opengraphics.org./tiki-index.php?page=Development_Tools But I'm not sure how relevant that...
I'm not cutting it with just the man pages and my least unsuccessful search, "sigaction example", hasn't helped me understand it much better. Some questions / assumptions:
- SA_RESTART: "restarting...
I didn't realize the implementation difference, I'll stick to linux only man-pages from now on. And I'll try putting sigaction() in a wrapper function.
Thank you both for the clarification.
Cheers,...
Hi,
In another thread brewbuck pointed out that sigaction() may return EINTR and that all such calls should be wrapped in a loop to retry until they no longer return EINTR. The code being discussed...
When I was a wee boy I used to program BASIC on my BBC Micro :'(
Does that count? Nah, I didn't think so ...
:D
And after asking twice, I notice that I still haven't answered your question, sorry:
My implementation comes from this FAQ without fully understanding it.
Turns out I'm wrong. The below code...
Thanks for the explanation, I think I understand :)
Actually, the next thing I wanted to try is putting the functions in separate files, so by then it may be more relevant to consider this.
Thanks, I'll try to move that stuff to main().
I think it makes sure that the source of whatever kind cannot be altered. Or was that const ... But I haven't yet rtfm of either static or const.
...
So checking if (fp == NULL) is not enough? When I enter a non-existent file name, the program quits with "fopen: No such file or directory". Perhaps this would be better? (I don't know if this...
Yay! It now does what I want, sort of. I have some questions though.
- gcc -Wall doesn't care whether read_line() is int or char. I thought EOF is int, no?
- Is there a point in freeing memory...
You made a blanket statement (all too prevalent in such discussions) that I asked you to back up. I merely provided an example of why it's not that black and white.
Do you have a source to go with that? Not this one perhaps? fyi.
Your milage may vary.
That is not true.
:D
Thanks matsp! That was an easier fix than I thought. xuftugulus, thanks for catching those bugs, I'll clean up the loop with proper checking.
The off by 2 thing turns out to be related to the...
Sounds like "hours of fun". Maybe you want to try a distro that has a package for this driver.
Instead of spying, you could save yourself the trouble and use something like Dansguardian. There must be something similar for Windows platforms.