I'm creating a shared library for the first time and would appreciate it if someone could provide a little guidance. Specifically, are there any special considerations I should be aware of? I'm compiling on Solaris 9 on a sparc station.
One more... I have a timeout mechansim using signals:
where I want to return to the calling program when the timeout expires. My fear is that having an "exit(1)" in the timeoutAlarm() function will cause the calling program to exit instead of just returning to the calling function/program with the other stuff set in timeoutAlarm. Is this fear founded? If so, how would I accomplish this? Are there other alternatives?Code:void timeoutAlarm() { variable1 = value1; variable2 = value2... exit(1); } ... signal(SIGALRM, timeoutAlarm)
Thanks!