× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Mon, 16 Jan 2006, Scott Klement wrote:

When you use the setitimer() function you can't help but use signals.
setitimer uses signals as a trigger.  I simply added another signal to
shut down gracefully.  If you use setitimer() at all, you will by
necessity use signals (at least this is true on linux - if this isn't
true on OS/400 then just say so).

My complaint was that you used the signal() API, not that signals were
sent to the process.

It's true that setitimer() sends a signal to your program.  That does not,
however, mean that you have to use signal() to catch it. My assertion is
that it'd be a better example if you used sigaction() instead of signal().

So why not just say that the example could be improved by using sigaction()?

Because the example is relevant to the post that setitimer() could solve
the problem.

I already suggested that setitimer() could solve the problem.  You
responded to that with "Look at my wonderful Linux C program".
Unfortunately, that program neither works on the iSeries, or is written in
RPG, consequently doesn't do an iSeries RPG programmer any good.

Yes, you did suggest it and it is a good suggestion. I'm fairly certain that not many RPG programmers have ever actually used the setitimer() function before, so an example is quite appropriate. I never claimed my example was wonderful, only that it could be useful. If an RPG programmer decides that setitimer() is the way to go, the example can be useful to show how it is used - even if the language used is different.

James Rich

It's not the software that's free; it's you.
        - billyskank on Groklaw

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.