mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 13:52:28 +00:00
Do code cleanup use duff device linenoise i/o
This commit is contained in:
parent
6ff46ca373
commit
2f56ebfe78
79 changed files with 1393 additions and 1484 deletions
|
@ -53,19 +53,19 @@ static relegated void DieBecauseOfQuota(int rc, const char *message) {
|
|||
}
|
||||
|
||||
static relegated void OnXcpu(int sig) {
|
||||
__restore_tty(2);
|
||||
__restore_tty();
|
||||
DieBecauseOfQuota(23, "\n\nSIGXCPU: ran out of cpu");
|
||||
}
|
||||
|
||||
static relegated void OnXfsz(int sig) {
|
||||
__restore_tty(2);
|
||||
__restore_tty();
|
||||
DieBecauseOfQuota(25, "\n\nSIGXFSZ: exceeded maximum file size");
|
||||
}
|
||||
|
||||
relegated void __oom_hook(size_t request) {
|
||||
int e;
|
||||
uint64_t toto, newlim;
|
||||
__restore_tty(2);
|
||||
__restore_tty();
|
||||
e = errno;
|
||||
toto = CountMappedBytes();
|
||||
kprintf("\n\nWE REQUIRE MORE VESPENE GAS");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue