Lines Matching refs:n_env
1495 size_t n_env = 0; in service_spawn_internal() local
1551 … if (asprintf(our_env + n_env++, "NOTIFY_SOCKET=%s", UNIT(s)->manager->notify_socket) < 0) in service_spawn_internal()
1558 if (asprintf(our_env + n_env++, "MAINPID="PID_FMT, s->main_pid) < 0) in service_spawn_internal()
1562 if (asprintf(our_env + n_env++, "MANAGERPID="PID_FMT, getpid_cached()) < 0) in service_spawn_internal()
1566 if (asprintf(our_env + n_env++, "PIDFILE=%s", s->pid_file) < 0) in service_spawn_internal()
1591 our_env[n_env++] = t; in service_spawn_internal()
1599 our_env[n_env++] = t; in service_spawn_internal()
1614 …if (asprintf(our_env + n_env++, "%sSERVICE_RESULT=%s", monitor_prefix, service_result_to_string(en… in service_spawn_internal()
1619 …if (asprintf(our_env + n_env++, "%sEXIT_CODE=%s", monitor_prefix, sigchld_code_to_string(env_sourc… in service_spawn_internal()
1623 …r = asprintf(our_env + n_env++, "%sEXIT_STATUS=%i", monitor_prefix, env_source->main_exec_status.s… in service_spawn_internal()
1625 …r = asprintf(our_env + n_env++, "%sEXIT_STATUS=%s", monitor_prefix, signal_to_string(env_source->m… in service_spawn_internal()
1633 … r = asprintf(our_env + n_env++, "%sINVOCATION_ID=" SD_ID128_FORMAT_STR, in service_spawn_internal()
1639 … if (asprintf(our_env + n_env++, "%sUNIT=%s", monitor_prefix, UNIT(env_source)->id) < 0) in service_spawn_internal()