Use modifier for pid_t
This commit is contained in:
parent
8108594f47
commit
b4daa44270
2
error.c
2
error.c
@ -524,7 +524,7 @@ bug_report_begin_valist(FILE *out, const char *fmt, va_list args)
|
||||
#if RUBY_DEVEL
|
||||
const char *cmd = getenv("RUBY_ON_BUG");
|
||||
if (cmd) {
|
||||
snprintf(buf, sizeof(buf), "%s %d", cmd, getpid());
|
||||
snprintf(buf, sizeof(buf), "%s %"PRI_PIDT_PREFIX"d", cmd, getpid());
|
||||
int r = system(buf);
|
||||
if (r == -1) {
|
||||
snprintf(buf, sizeof(buf), "Launching RUBY_ON_BUG command failed.");
|
||||
|
Loading…
x
Reference in New Issue
Block a user