From: Jeffrey Altman Date: Sat, 15 Jan 2011 16:44:08 +0000 (-0500) Subject: volser: use OS_CLOSE() instead of close() X-Git-Tag: upstream/1.8.0_pre1^2~4286 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ecf55b063e7c9bbbac426831dfe504c1db92bb52;p=packages%2Fo%2Fopenafs.git volser: use OS_CLOSE() instead of close() Use OS_CLOSE() instead of close() when closing vol package allocated file descriptors. On Windows, close() != nt_close(). Change-Id: I5737c0e4e83534bd5f4183dde195c4b8091474c1 Reviewed-on: http://gerrit.openafs.org/3668 Reviewed-by: Derrick Brashear Tested-by: BuildBot --- diff --git a/src/volser/volprocs.c b/src/volser/volprocs.c index 70d002a72..7b9891e13 100644 --- a/src/volser/volprocs.c +++ b/src/volser/volprocs.c @@ -136,7 +136,7 @@ VPFullUnlock_r(void) struct DiskPartition64 *tp; for (tp = DiskPartitionList; tp; tp = tp->next) { if (tp->lock_fd != INVALID_FD) { - close(tp->lock_fd); /* releases flock held on this partition */ + OS_CLOSE(tp->lock_fd); tp->lock_fd = INVALID_FD; } }