Bug 153703 - Make non-restartable system calls EINTR aware
Summary: Make non-restartable system calls EINTR aware
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Yusuke Suzuki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-30 03:56 PST by Yusuke Suzuki
Modified: 2016-01-30 03:56 PST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yusuke Suzuki 2016-01-30 03:56:25 PST
In some places, we just calls `usleep` / `sleep` without chekcing EINTR.
This sleeps will be interrupted if the signal comes.

We should use nanosleep(req, remaining) and if interrupted by signal, we should reexecute it with remaining.