You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jsrc/jconsole.c
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,16 +42,18 @@ static int err_write(void *data, uintptr_t pc, const char *file, int line, const
42
42
file=file ? file : "?";
43
43
while(!strncmp(file, "../", 3)) file+=3; // strip leading '../'. Don't strip leading 'jsrc/' to avoid ambiguity with source files with other origins.
44
44
snprintf(buf, sizeof(buf), "%0*lx: %s:%d:\t%s\n", BW==64?16:8, (unsigned long)pc, file, line, function ? function : "?");
45
-
ssize_tr=write(STDERR_FILENO, buf, strlen(buf));
45
+
(void)!write(STDERR_FILENO, buf, strlen(buf));
46
46
R0;}
47
47
staticvoidsigsegv(intk){
48
48
//todo should say to report to the beta forums for beta builds
49
49
constcharmsg[] ="JE has crashed, likely due to an internal bug. Please report the code which caused the crash, as well as the following printout, to the J programming forum.\n";
50
50
// write is async-signal safe; fwrite&co are not, but still do this, just to be safe
0 commit comments