linux - Pipelines in C - Do I have to use fork? -



linux - Pipelines in C - Do I have to use fork? -

let's assume i'm working c only, in linux environment.

normally, if want utilize pipe() function, create pipe , fork it, thereby allowing parent communicate child, , vice-versa.

but if it's not parent , child? if have old process that's running, possible communicate using pipe() function? process not parent of(or related in way to) current process, have it's pid. restricted file or socket interprocess communication?

is there way can perchance specify pid , receive info without using sockets?

for question

but if it's not parent , child? if have old process that's running, possible communicate using pipe() function?

you not able communicate other process, aren't created parent process. technically, shouldn't allowed to.

you need go through os or utilize other ipc mechanisms attain functionality.

the databases used because of primary reason. multiple processes able read , write info single db. protection multiple updates.

c linux process pipe inter-process-communicat

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -