EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Read from standard input in callback function

#36394
Posted: 04/05/2016 04:58:03
by strlock strlock (Basic support level)
Joined: 04/05/2016
Posts: 2

Why I can't read something from standard input in the callback (for example readdir)? The system simply hangs completely. I use FUSE wrapper.
#36395
Posted: 04/05/2016 06:00:59
by Eugene Mayevski (Team)

The general rule is "the less operations you perform in callbacks, the better".
Any operation, no matter how simple, can potentially lead to a deadlock. Windows was not designed with things like CBFS in mind, and when the callback is called, the system is in very sensitive state with some global objects locked. Whatever you call can require those objects to be locked, which would cause a deadlock (and it does, as in your case). There's no resolution available for this problem.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 2598 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!