History

Create configuration struct for VM Add syscall failure exception - Create VM syscall failure message functions Respect the 'r' format verb Create module resolver interface Implement default module resolver interface Implement Sys.fildes() function

arr committed 9 years ago

Commit 232a6591 parent eb06d3d17 files · +416 −124Browse files

Showing the changes to src/vm/sys/fd_manager.cpp (1 of 17 files). Show all

Unified · Split

src/vm/sys/fd_manager.cpp+1−1
@@ -64,7 +64,7 @@ vm_alloc_t * disvm::runtime::sys::fetch_fd_record(word_t fd) · 63 unmodified lines
6464 std::lock_guard<std::mutex> lock{ fd_map_lock };
6565 auto iter = fd_map.find(fd);
6666 if (iter == fd_map.cend())
67− throw vm_user_exception{ "Unknown file descriptor" };
67+ return nullptr;
6868
6969 return iter->second;
7070 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t