EmbLogic's Blog

Project 3:IPC Server Client using shared memory and semaphores

Implemented
#Server client using semaphores and shared memory
Issues faced:
At the time of reading at the server side couldnt find a way for the server to know whether new data has been entered or not so used a flag to to tell server to read the data which was set by the client…

2 Responses to Project 3:IPC Server Client using shared memory and semaphores

  1. vinod khatana says:

    how can we access or print return value of execl?

    • man execl says:
      RETURN VALUE
      The exec() functions only return if an error has have occurred. The
      return value is -1, and errno is set to indicate the error.
      So if an error has occurred which means that the child process in which you hav done execl has not been replaced by the new process then you can access the
      retval of the execl function (For that it would be better to use perror(“”) rather than checkg the return value as perror will tell you why the error has come ). In case of no error then you will go into the new replaced process so accessing the return value has no significance.

Leave a Reply to vinod khatana Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>