Go to the source code of this file.
◆ fork_process()
pid_t fork_process |
( |
void |
| ) |
|
Definition at line 29 of file fork_process.c.
32 const char *oomfilename;
56 getitimer(ITIMER_PROF, &prof_itimer);
64 setitimer(ITIMER_PROF, &prof_itimer, NULL);
83 oomfilename = getenv(
"PG_OOM_ADJUST_FILE");
85 if (oomfilename != NULL)
91 int fd = open(oomfilename, O_WRONLY, 0);
96 const char *oomvalue = getenv(
"PG_OOM_ADJUST_VALUE");
102 rc =
write(
fd, oomvalue, strlen(oomvalue));
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)
References close, fd(), fflush(), pg_strong_random_init(), setitimer(), generate_unaccent_rules::stdout, and write.
Referenced by BackendStartup(), do_start_bgworker(), StartAutoVacWorker(), StartChildProcess(), and SysLogger_Start().