Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
77 user(s) are online (53 user(s) are browsing Forums)

Members: 0
Guests: 77

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: Porting apitrace

Subject: Re: Porting apitrace
by Capehill on 2019/4/7 16:45:01

@kas1e

Yes, there is this limitation in source code (easy to modify of course). To write a logfile dynamically from multiple process contexts, there has to be a better solution.

The problem is that glsnoop opens the log file. Now, if I understand correctly, random process cannot just write this file using the same handle, but it should either have its own file handle or delegate writes to glsnoop. So, logs are just collected in a mutex-guarded memory buffer and flushed at the end. Not very cool, but until a better solution :)

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project