×
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.
I have a piece of RPG code that is running as part of a C program. The code
is critical code and only one thread at a time can execute it.
I sendmsg and recvmsg to send message between two job.
All works perfectly if that other job is still there but when that job dies
or crashes and I attempt to a recvmsg, it hangs forever.
To avoid that problem, I am using signals Scott has discussed.
I enable the signals and then issue an alarm before I issue the recvmsg.
If I use 1 second and their is nothing out there I would expect for the
recvmsg to hang which it does but the alarm never fires.
I am trying to figure out why the alarm is not firing. Is it possible the
alarm doesn't work because the RPG code was called from a thread in C code?
I just tired some test code that had one program spawn another program and
I did an alarm in that job and it worked so that tells me that the fact
that I am running in a multi-threaded environment must be what is causing
the problem.
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.