Skip to content

Commit c42dbe0

Browse files
committed
Issue new Blinkenlights release
1 parent 94afa98 commit c42dbe0

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

libc/log/oncrash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ relegated void __oncrash(int sig, struct siginfo *si, ucontext_t *ctx) {
230230
int gdbpid, err;
231231
static bool once;
232232
err = errno;
233-
if (once) abort();
233+
if (once) _exit(119);
234234
once = true;
235235
/* TODO(jart): Needs translation for ucontext_t and possibly siginfo_t. */
236236
if (IsFreebsd() || IsOpenbsd()) ctx = NULL;

tool/build/lib/debug.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
│ PERFORMANCE OF THIS SOFTWARE. │
1818
╚─────────────────────────────────────────────────────────────────────────────*/
1919
#include "libc/calls/calls.h"
20+
#include "libc/calls/internal.h"
2021
#include "libc/calls/struct/stat.h"
2122
#include "libc/elf/elf.h"
2223
#include "libc/log/check.h"
2324
#include "libc/runtime/gc.h"
25+
#include "libc/stdio/stdio.h"
2426
#include "libc/sysv/consts/map.h"
2527
#include "libc/sysv/consts/o.h"
2628
#include "libc/sysv/consts/prot.h"
@@ -35,15 +37,14 @@ void LoadDebugSymbols(struct Elf *elf) {
3537
const char *path;
3638
if (elf->ehdr && GetElfSymbolTable(elf->ehdr, elf->size, &n) && n) return;
3739
DCHECK_NOTNULL(elf->prog);
38-
fprintf(stderr, "HI %s\n", elf->prog);
39-
if ((fd = open(gc(xstrcat(elf->prog, ".dbg")), O_RDONLY)) != -1 ||
40-
(fd = open(elf->prog, O_RDONLY)) != -1) {
40+
if ((fd = open(xstrcat(elf->prog, ".dbg"), O_RDONLY)) != -1) {
4141
if (fstat(fd, &st) != -1 &&
42-
(elfmap = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0)) !=
42+
(elfmap = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) !=
4343
MAP_FAILED) {
4444
elf->ehdr = elfmap;
4545
elf->size = st.st_size;
4646
}
4747
close(fd);
4848
}
49+
fprintf(stderr, "got here\n");
4950
}

0 commit comments

Comments
 (0)