For starters, fork creates a thread (not a process) in Windows. Is that a problem?
I wrote a script to communicate b/w processes bidirectionally using pipes ,but it doesn't work as intended
The script you posted runs on neither linux nor Windows until you fix the issue with reading until a newline is encountered when none is sent. Then, it works fine on both linux and Windows.
Since I need to run the same script in windows,I think I can't use socketpair like below for bidirectional communication rt?
I'm pretty sure you can, but you might have to change from AF_UNIX to AF_INET.
In reply to Re: Message Passing b/w processes , that works both in windows and Linux
by ikegami
in thread Message Passing b/w processes , that works both in windows and Linux
by shijumic
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |