diff options
author | Robert Hensing <robert@roberthensing.nl> | 2023-02-01 17:41:24 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2023-04-07 16:24:18 +0200 |
commit | 1107ea363f600f37152e2b144d03c4071c2a6b6b (patch) | |
tree | 1e34e10dc6d6934f54782b69d5eda3212b3fd330 /src | |
parent | 52d6ce6515ff1e8462b67b2adb1942477ce122f8 (diff) |
libmain: Clarify the lack of initLibExpr()
Quote
Why not initLibExpr()? initGC() is essentially that, but
detectStackOverflow is not an instance of the init function concept, as
it may have to be invoked more than once per process.
Furthermore, renaming initGC to initLibExpr is more trouble than it's
worth at this time.
Diffstat (limited to 'src')
-rw-r--r-- | src/libmain/shared.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index 2a7e09e65..a25865aad 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -156,7 +156,10 @@ void initNix() if (sigaction(SIGTRAP, &act, 0)) throw SysError("handling SIGTRAP"); #endif - /* Register a SIGSEGV handler to detect stack overflows. */ + /* Register a SIGSEGV handler to detect stack overflows. + Why not initLibExpr()? initGC() is essentially that, but + detectStackOverflow is not an instance of the init function concept, as + it may have to be invoked more than once per process. */ detectStackOverflow(); /* There is no privacy in the Nix system ;-) At least not for |