Can I use pipe between two process without using fork and share file descriptors with for example socket ? I don’t need another solution, I need pipe between two process that not forked.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use a named pipe (FIFO):
if you do
mkfifo <common path>, you an use this path in both processes, one for reading and one for writing. Then you have the same behaviour as with a normal pipe.