Automatic Program loading at boot-up
At command prompt the program works perfectly well in background mode.i.e my_program &
But if excuted from rc.local , it starts execution ,prints few messages which are part of the program. One more observation I would like to share is, it stops execution at the end of return of a function call. This function is defined as extern to the calling program. The program is in C.
Secondly, I've not really used any fork,setsid sequence. Can you pls. suggest me some reference to get basic ideas of these daemon concepts?
Thanks a lot