36 const char *oomfilename;
56 getitimer(ITIMER_PROF, &prof_itimer);
65 sigprocmask(SIG_SETMASK, &
BlockSig, &save_mask);
72 setitimer(ITIMER_PROF, &prof_itimer, NULL);
91 oomfilename = getenv(
"PG_OOM_ADJUST_FILE");
93 if (oomfilename != NULL)
99 int fd = open(oomfilename, O_WRONLY, 0);
104 const char *oomvalue = getenv(
"PG_OOM_ADJUST_VALUE");
107 if (oomvalue == NULL)
110 rc =
write(
fd, oomvalue, strlen(oomvalue));
122 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)