I have applied patch 1153271 to main which gives pass_persist support under Windows when compiled with MSVC. For some reason it does not work when compiled with MinGW, so I have disabled it for MinGW until a fix is found. I think there is an issue with the input pipe under MinGW that causes the called process to block forever. To enable for MinGW for testing, in util_funcs.c in get_exec_pipes() change:
#if defined(WIN32) && !defined (mingw32) !defined(HAVE_EXECV)
to:
#if defined(WIN32) !defined(HAVE_EXECV)
The patch says it "blocks in the "read" function while waiting for a result from the called program.". Is this any different than under *nix?
I was able to port the code to the pass function also, which now works with MSVC and MinGW.
Cygwin already supported both pass and pass_persist using the existing posix functions (fork etc).
I also created a Perl version of the passtest shell script for testing under Windows. It's call passtest.pl under /local.
Alex
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
