LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 08-06-2009, 07:57 AM   #1
msherbiny
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
Exclamation Shared semaphore usage problem


Hi,

I am trying to make IPC between two processes through shared memory and shared semaphores.

A parent process is run which forks another child process. When the child process tries to use a shared semaphore by calling semget(), semop(), ... an error occurs. "errno" value is ESPIPE or 29. This error is not listed with the expected errors according to semget() or semop() man pages.

It is worth nothing that introducing a sleep statement in parent process after each semaphore operation causes the error to vanish. Of course this delay is not accepted in normal operation of the application.

Thanks for the help in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
usage of shared memory dianarani Linux - Hardware 1 10-16-2007 03:12 PM
destruction of a shared semaphore gcote Programming 2 02-07-2007 12:13 PM
Hi semaphore and shared memory rammu_sivraj Linux - Newbie 4 06-29-2006 11:49 AM
shared memory/semaphore problem V_Ganesh Programming 1 03-31-2005 10:58 PM
How to change shared memory and semaphore config on RHL9? ryanw Linux - Software 1 01-18-2005 10:14 AM


All times are GMT -5. The time now is 07:07 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration