EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Read from standard input in callback function

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
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.
Posted: 04/05/2016 06:00:59
by Eugene Mayevski (EldoS Corp.)

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



Topic viewed 1630 times

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


Back to top

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

Got it!