Merge branch 'userprog-merge' into 'master'

Update variable references between conflicting merges to refer to the same...

See merge request lab2425_autumn/pintos_22!35
This commit is contained in:
Demetriades, Themis
2024-11-11 22:59:45 +00:00

View File

@@ -137,7 +137,10 @@ start_process (void *proc_start_data)
goto fail; goto fail;
} }
struct file *exec_file = filesys_open (file_name); /* NOTE: Currently, the file being executed is closed in load () and then
reopened here. Because load is an exported public function, this
might be necessary. */
struct file *exec_file = filesys_open (data->file_name);
thread_current ()->exec_file = exec_file; thread_current ()->exec_file = exec_file;
file_deny_write (exec_file); file_deny_write (exec_file);