Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: sysseek and syswrite fails

by bloonix (Monk)
on Oct 15, 2009 at 21:42 UTC ( #801440=note: print w/replies, xml ) Need Help??


in reply to Re: sysseek and syswrite fails
in thread sysseek and syswrite fails

Hi Peter,

>>Double check that you're indeed using unbuffered IO everywhere. I am using sysseek, syswrite, sysread.
>>If I understand you correctly, you're forking
>>children to read:

Yes. Each child write its current status to a file that looks like a table.

>>use strace -f instead for the _real_, _complete_
>>trace.

The above strace output was generated with -f for each child.


>>consider to explicitly open the files separately in
>>each child (my bet - issues both for the pointer
>>AND for the locking).

Hmmm, okay, that could be the solution. The parent is forking and the children uses all opened handles of the parent.

I test it! Thanks a lot for the suggestions!

Cheeers,
Jonny Update: removed small tags

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://801440]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2022-01-16 21:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (50 votes). Check out past polls.

    Notices?