Re: Sharing file number between processes

new topic     » goto parent     » topic index » view thread      » older message » newer message
cp said...

If I open a file with one process and pass that file number to another running process say via shared memory, can the second process write to the file opened with the 1st process?

No. That number only means something to that instance of euphoria. Ultimately, it maps to a FILE pointer returned by fopen (part of the C std library). I don't think you could share that, either. I'd guess that you'd have to set up some protocol between your processes to have the owning file do the IO.

Matt

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu