You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by zh...@apache.org on 2017/12/02 06:57:29 UTC

[incubator-mxnet] branch master updated: fix multiprocessing too many open files (#8904)

This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 1dc4aea  fix multiprocessing too many open files (#8904)
1dc4aea is described below

commit 1dc4aea2eee5032b79a07e5bd6a4a4325d5708cb
Author: Eric Junyuan Xie <pi...@users.noreply.github.com>
AuthorDate: Fri Dec 1 22:57:23 2017 -0800

    fix multiprocessing too many open files (#8904)
    
    * fix
    
    * Update cpu_shared_storage_manager.h
---
 src/storage/cpu_shared_storage_manager.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/storage/cpu_shared_storage_manager.h b/src/storage/cpu_shared_storage_manager.h
index d623cf2..9f0f2a3 100644
--- a/src/storage/cpu_shared_storage_manager.h
+++ b/src/storage/cpu_shared_storage_manager.h
@@ -139,6 +139,7 @@ void CPUSharedStorageManager::Alloc(Storage::Handle* handle) {
   ptr = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_SHARED, fid, 0);
   CHECK_NE(ptr, MAP_FAILED)
       << "Failed to map shared memory. mmap failed with error " << strerror(errno);
+  close(fid);
 #endif  // _WIN32
 
   if (is_new) {

-- 
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].