commit | 7728634f7d88bd0b37dde9b1819490bd9764f010 | [log] [tgz] |
---|---|---|
author | Jes B. Klinke <jbk@chromium.org> | Mon Mar 07 08:37:48 2022 -0800 |
committer | Timothy Trippel <5633066+timothytrippel@users.noreply.github.com> | Tue Mar 08 08:42:01 2022 -0800 |
tree | ef244a9cf76e74ba2d4aade4732a0be6cc214ac1 | |
parent | f6cf203d4d8f1f4ff71248047de0e8d7b246e208 [diff] |
[opentitantool] Tolerate being interrupted in epoll() If a benign signal is handled, while a system call is in progress, it may cause the system call to return EINTR. Some rust library functions, such as write_all() will no doubt loop and make another system call, until the full buffer has been processed. Others, such as epoll() apparently, will return Err(ErrorKind::Interrupted). This change makes it such that the main event loop of the opentitansession deamon will not terminate in case of e.g. SIGSTOP/SIGCONT or other harmless signals being handled. Signed-off-by: Jes B. Klinke <jbk@chromium.org> Change-Id: I792ec2981daeafb7403cef02fca06d72aed98338
OpenTitan is an open source silicon Root of Trust (RoT) project. OpenTitan will make the silicon RoT design and implementation more transparent, trustworthy, and secure for enterprises, platform providers, and chip manufacturers. OpenTitan is administered by lowRISC CIC as a collaborative project to produce high quality, open IP for instantiation as a full-featured product. See the OpenTitan site and OpenTitan docs for more information about the project.
This repository contains hardware, software and utilities written as part of the OpenTitan project. It is structured as monolithic repository, or “monorepo”, where all components live in one repository. It exists to enable collaboration across partners participating in the OpenTitan project.
The project contains comprehensive documentation of all IPs and tools. You can access it online at docs.opentitan.org.
Have a look at CONTRIBUTING and our documentation on project organization and processes for guidelines on how to contribute code to this repository.
Unless otherwise noted, everything in this repository is covered by the Apache License, Version 2.0 (see LICENSE for full text).