ndhc/nk/pspawn.h
Nicholas J. Kain 898765e0a8 scriptd: Use posix_spawn rather than fork/exec.
Also don't bother providing an artificial environment.
2022-08-09 13:40:10 -04:00

16 lines
387 B
C

// Copyright 2022 Nicholas J. Kain <njkain at gmail dot com>
// SPDX-License-Identifier: MIT
#ifndef NCM_PSPAWN_H_
#define NCM_PSPAWN_H_
#include <sys/types.h>
#include <spawn.h>
int nk_pspawn(pid_t *pid, const char *command,
const posix_spawn_file_actions_t *file_actions,
const posix_spawnattr_t *attrp,
const char *args, char * const envp[]);
#endif