-
Notifications
You must be signed in to change notification settings - Fork 51
osquery can't close win pipe #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This issue remains on version 3.0.6. I used
Environment:
|
This still happens in 3.0.7 (latest version from pip) on win 10 Problem disappears when using outhex@19691b9 - this fix |
Issue 1: in TPipeServer, the CloseHandle call happened on a None _handle after the super() call. Issue 2: Client raises an issue as described in osquery#57, correct call seems to be CloseHandle. This commit fixes both issues
@hotab This fix worked for me, too. I'm using win10, with:
|
After any query on del of SpawnInstance I get an ignored exception
Exception ignored in <bound method SpawnInstance.__del__ of <osquery.management.SpawnInstance object at 0x021854F0>> pywintypes.error: (1, 'DicsonnectNamedPipe', 'Incorrect function.')
my script:
import osquery instance = osquery.SpawnInstance() instance.open() instance.client.query("<some query>")
Now i use some dirty "hack" as after
instance.client.query("<some query>")
i do:
instance.connection=None
My machine os:
Windows 7x64
The text was updated successfully, but these errors were encountered: