Macaulay2 / Macaulay2/M2

Keyword shield doesn't work

Open
#2,596 12 comments 0 reactions 1 assignee View on GitHub

@pqcfox is already working on this.

Since Feb 18, 2023.

Interpreter
Dominant language
Macaulay2
Stars
435
Forks
297
Avg merge
4d 20h
Merged PRs (30d)
11

Description

The documentation claims:

shield x -- executes the expression x, temporarily ignoring interrupts.

Unless I'm misunderstanding the page, which doesn't include any examples, shield doesn't seem to be working:

i1 : f = t -> shield sleep t;

i2 : f 10
^Cstdio:2:1:(3): error: interrupted

i3 : f = t -> ( alarm 1; shield sleep t );

i4 : f 5
stdio:4:1:(3): error: alarm occurred

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.