Re: [execline] [RFC] Allow `foreground` to handle signals

From: Joshua Ismael Haase Hernández <hahj87_at_gmail.com>
Date: Sun, 27 Jun 2021 21:07:13 -0500

El dom, 27 jun 2021 a las 17:13, Laurent Bercot (<ska-skaware_at_skarnet.org>)
escribió:

> It sounds like your previous foreground process group (i.e. the
> processes that launch your script) attempted to write to, or read from,
> the terminal while your editor was running. That is pretty weird.
> Replace -g with -f, see what happens. If your editor is stopped, just
> remove the options entirely and run the editor in a new session; it
> looks like your caller program is buggy.
>

That is indeed the problem: git output to console a message to tell you
it's waiting for the editor to stop to commit.

The fix was to:

```
foreground {
   s6-setsid -g
   editor ${file}
}
foreground {
  s6-setsid -g
  spellcheck ${file}
}
s6-setsid -g
vcs-commit ${file}
```
Received on Mon Jun 28 2021 - 04:07:13 CEST

This archive was generated by hypermail 2.4.0 : Mon Jun 28 2021 - 04:07:57 CEST