Showing the changes to src/vm/sys/fd_manager.cpp (1 of 17 files). Show all
Unified · Split
| @@ -64,7 +64,7 @@ vm_alloc_t * disvm::runtime::sys::fetch_fd_record(word_t fd) · 63 unmodified lines | |||
| 64 | std::lock_guard<std::mutex> lock{ fd_map_lock }; | 64 | std::lock_guard<std::mutex> lock{ fd_map_lock }; |
| 65 | auto iter = fd_map.find(fd); | 65 | auto iter = fd_map.find(fd); |
| 66 | if (iter == fd_map.cend()) | 66 | if (iter == fd_map.cend()) |
| 67 | throw vm_user_exception{ "Unknown file descriptor" }; | 67 | return nullptr; |
| 68 | 68 | ||
| 69 | return iter->second; | 69 | return iter->second; |
| 70 | } | 70 | } |