unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why does sh in the build environment ignore SIGINT and SIGQUIT?
@ 2022-05-22  8:00 Foo Chuan Wei
  2022-05-22 14:14 ` Ryan Prior
  2022-05-30 15:20 ` Ludovic Courtès
  0 siblings, 2 replies; 6+ messages in thread
From: Foo Chuan Wei @ 2022-05-22  8:00 UTC (permalink / raw)
  To: guix-devel

The shell in the environment where packages are built ignores SIGINT and
SIGQUIT. If I add `(invoke "sh" "-c" "trap")` to a custom build phase,
this output is produced during the build:

    trap -- '' INT
    trap -- '' QUIT

Why does the shell in the build environment need to ignore these two
signals?

For context, this affects the build of the smlnj package
(gnu/packages/sml.scm). The resulting executable seems to inherit the
signal dispositions of the shell where the executable is built, with the
result that CTRL-C is ignored at the sml REPL.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-30 15:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-22  8:00 Why does sh in the build environment ignore SIGINT and SIGQUIT? Foo Chuan Wei
2022-05-22 14:14 ` Ryan Prior
2022-05-23  3:14   ` Foo Chuan Wei
2022-05-24  6:25     ` Foo Chuan Wei
2022-05-24 23:28       ` Kaelyn
2022-05-30 15:20 ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).