35 const char *oomfilename;
55 getitimer(ITIMER_PROF, &prof_itimer);
64 sigprocmask(SIG_SETMASK, &
BlockSig, &save_mask);
70 setitimer(ITIMER_PROF, &prof_itimer, NULL);
89 oomfilename = getenv(
"PG_OOM_ADJUST_FILE");
91 if (oomfilename != NULL)
97 int fd = open(oomfilename, O_WRONLY, 0);
102 const char *oomvalue = getenv(
"PG_OOM_ADJUST_VALUE");
105 if (oomvalue == NULL)
108 rc =
write(
fd, oomvalue, strlen(oomvalue));
120 sigprocmask(SIG_SETMASK, &save_mask, NULL);
static void const char fflush(stdout)
void pg_strong_random_init(void)
static int fd(const char *x, int i)
int setitimer(int which, const struct itimerval *value, struct itimerval *ovalue)