You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/07/16 22:51:43 UTC
cvs commit: apr/file_io/unix filedup.c
wrowe 01/07/16 13:51:43
Modified: file_io/unix filedup.c
Log:
Write once, recheck twice )
Revision Changes Path
1.32 +2 -2 apr/file_io/unix/filedup.c
Index: filedup.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- filedup.c 2001/07/16 20:44:16 1.31
+++ filedup.c 2001/07/16 20:51:43 1.32
@@ -89,8 +89,8 @@
(*new_file)->flags = old_file->flags;
apr_pool_cleanup_register((*new_file)->cntxt, (void *)(*new_file),
apr_unix_file_cleanup,
- (*new_file)->flags ? apr_pool_cleanup_null
- : apr_unix_file_cleanup);
+ ((*new_file)->flags & APR_INHERIT)
+ ? apr_pool_cleanup_null : apr_unix_file_cleanup);
return APR_SUCCESS;
}