Minor change to documentation

This commit is contained in:
Nocturn9x 2022-10-19 11:38:27 +02:00
parent 07b8337a46
commit 844e65fa3a
1 changed files with 2 additions and 2 deletions

View File

@ -522,8 +522,8 @@ class FIFOKernel:
self.selector.modify(resource, evt_type, self.current_task)
self.current_task.last_io = (evt_type, resource)
elif not self.current_task.last_io or self.current_task.last_io[1] != resource:
# The task has either registered a new socket or is doing
# I/O for the first time. In both cases, we register a new socket
# The task has either registered a new resource or is doing
# I/O for the first time
self.current_task.last_io = evt_type, resource
try:
self.selector.register(resource, evt_type, [self.current_task])