[ovs-dev] [PATCH V6 12/17] python tests: Ported Python daemon to Windows

Alin Serdean aserdean at cloudbasesolutions.com
Wed Jul 13 14:49:51 UTC 2016


> -----Mesaj original-----
> De la: Paul Boca
> Trimis: Wednesday, July 13, 2016 11:24 AM
> Către: Alin Serdean <aserdean at cloudbasesolutions.com>;
> dev at openvswitch.org
> Subiect: RE: [ovs-dev] [PATCH V6 12/17] python tests: Ported Python
> daemon to Windows
> 
> Hi Alin,
> 
> It was easier for me to call Windows APIs from python, that mimics
> detach_process, and to be in a better control on what's happening, than
> creating a *DLL and loading it in order to call this function.
> *On Windows the LIB file cannot be loaded as-is; a DLL with entry point
> needs to be created, allowing the ntdll loader to resolve the imported
> functions.
[Alin Gabriel Serdean: ] I understand the concern but we can deal with that pretty easily from the build system.
I understand the reasoning behind it, but in my opinion it seems we are duplicating the effort and in case of problems it will mean another codebase
to maintain.
Adding Ben and Guru to the thread extra opinions are always welcomed :).
> 
> I don't say it isn't doable, but this seemed to be the right solution for this.
> Also, creating a DLL loaded by python would add a dependency between
> python and C components.
> 
> Regarding the *unix side, maybe a Linux guy can add his opinion about this.
> 
> Thanks,
> Paul
> 
> > -----Original Message-----
> > From: Alin Serdean
> > Sent: Tuesday, July 12, 2016 10:54 PM
> > To: Paul Boca; dev at openvswitch.org
> > Subject: RE: [ovs-dev] [PATCH V6 12/17] python tests: Ported Python
> > daemon to Windows
> >
> > I am wondering if it is better if we could just import the shared
> > library and call the detach function
> > (https://github.com/openvswitch/ovs/blob/master/lib/daemon-
> > windows.c#L342) instead of duplicating the effort.
> >
> > I wonder if the same could be applied un the *unix side as well.
> >
> > Thanks,
> > Alin.


More information about the dev mailing list