EmbLogic's Blog

Program to pass file descriptor from one process to another

Output of the program is:
Main function starts
File opened successfully with fd 3
i am in parent
I am in child process and my pid is 1505
fd received from calling process is 3
file contains
Welcome to emblogic.

child terminated.

Leave a 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>