Is it possible to use file descriptor after main returns
I want to use the file descriptor opened by application_1 in another application_2, i.e
fd_1 = open( file );
ret = read( fd_1 );
My concern is once application_1 main returns all open fds will be closed right ?
Thanks in advance .