add: else { mutex_lock(&context->io_mutex); fd_set_close_on_exec(context, status, false); mutex_unlock(&context->io_mutex); }
context: dup_fd(int fd, bool kernel){	struct io_context *context = get_current_io_context(kernel);	struct file_descriptor *descriptor;	int status;	TRACE(("dup_fd: fd = %d\n", fd));	// Try to get the fd structure	descriptor = get_fd(context, fd);	if (descriptor == NULL)		return B_FILE_ERROR;	// now put the fd in place	status = new_fd(context, descriptor);	if (status < 0)		put_fd(descriptor);	return status;}