×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.





Never ending programs are quite frecuent, just think on Apache,
Sendmail, DB2, etc.  There are not something very new, I remember
writing NEPs in the S/34.

Apache, Sendmail and DB2 are not never-ending programs. They run until they're told to end.

For example, Apache on the iSeries ends when you type ENDTCPSVR *HTTP. A signal is sent to Apache which tells it to shut down.

Sendmail actually has several modes of operation. In one, it's a program you call from the command line, it processes one e-mail message, and then ends. In other modes of operation it remains active until it receives a signal, just like Apache does.

I think that was the point -- you never write a never-ending program, you always want to shut down when you're told to shut down by some external process. That might be a message on a data queue. It might be the subsystem ending (and therefore checking %shtdn). There are lots of other possibilities.

And, I think that was the point... you always need to be able to shut down a program.

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-2026 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.