lgi-devs / lgi-devs/lgi

issue about signals

Open
#27 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
491
Forks
81
PR merge metrics
No merged PRs in 30d

Description

I use Lua as extensions for my program. I noticed a problem: the signal is outside the built-in main loop. This causes my program freezes if a signal is received. I wanted to give an interface for extensions to connect signal inside the program, but LUA can't do that because I can't get the pointer of a function in Lua. Is there any workaround?

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.

Research direction

Start by reproducing the freeze when a signal arrives outside the built-in main loop, then trace how Lua extensions interact with signal handling and the program's main loop. Determine whether the project can expose a safe extension interface for this, and define completion around signals being handled without freezing the host program.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.