×

Good News Everybody!

The new search engine is LIVE!

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




This is strange.

I'm calling CEEMOUT api from RPG to log messages in the joblog.  I'm also
calling sem_open api to create a named semaphore.  It appears that once
CEEMOUT has been called in the program all subsequent calls to sem_open
fail.  The sem_open must be prior to any call to CEEMOUT.

Anyone have any ideas?

TIA,
Tom



 |  -----Original Message-----
 |  Sent: Tuesday, April 23, 2002 18:32
 |  To: 'rpg400-l@midrange.com'
 |  Subject: RE: Local Sockets vs. Data Queues Paul Nicolay
 |
 |  Paul,
 |
 |  Thanks for the tip!  Using a named semaphore is working
 |  well in my test pgm.
 |  The next hurdle is to understand why sem_open fails in the
 |  real application,
 |  which is a spawned pgm.  I don't know if the spawning is
 |  doing something
 |  fishy  (sorry - couldn't resist!)
 |
 |  Tom
 |
 |   |
 |   |   |  -----Original Message-----
 |   |   |  From: Nicolay, Paul [mailto:paul_nicolay@merck.com]
 |   |
 |   |   |
 |   |   |  Hi Tom,
 |   |   |
 |   |   |  As far as the waiting is concerned... you could use
 |   |   |  semaphores instead of
 |   |   |  the usrspc byte.
 |   |   |
 |   |   |  Kind regards,
 |   |   |  Paul
 |
 |  _______________________________________________
 |  This is the RPG programming on the AS400 / iSeries


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.