Update variable references between conflicting merges to refer to the same data in stack initialization

This commit is contained in:
Themis Demetriades
2024-11-11 22:51:19 +00:00
parent 47c3657b65
commit e8713e26c6

View File

@@ -137,7 +137,10 @@ start_process (void *proc_start_data)
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;
file_deny_write (exec_file);