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