Windows: cleanup redirector pipes
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 7 May 2012 15:35:07 +0000 (11:35 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 7 May 2012 17:04:00 +0000 (10:04 -0700)
commite9e14b551901db8f5be4d4c6060c709d2a3596be
treefda5c61bb663672c064887e4acc09e6958aca71b
parent542dad75733354a6fb1e912d3ff75d414459078b
Windows: cleanup redirector pipes

If pipe creation fails, cleanup the mess.

At shutdown, if there are pipes that have not been closed by
Windows, clean them up.

This is just to ensure that at shutdown the reference counts of
cm_scache_t objects in the cache are reset to zero.

Change-Id: I1d738c31faafce445f05adc4884c7711123589e2
Reviewed-on: http://gerrit.openafs.org/7366
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/user/RDRInit.cpp
src/WINNT/afsrdr/user/RDRIoctl.c
src/WINNT/afsrdr/user/RDRIoctl.h
src/WINNT/afsrdr/user/RDRPipe.c
src/WINNT/afsrdr/user/RDRPipe.h
src/WINNT/afsrdr/user/RDRPrototypes.h