aboutsummaryrefslogtreecommitdiff
path: root/test/test-posixspawn-hook.c
blob: 409f5fe450684c407c626763fd5e5fe4f12e11a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
#include <spawn.h>
#include <stdlib.h>
#include <stdio.h>
int main(__attribute__((unused)) int argc, char **argv) {
    pid_t pid = 0;
    printf("doing it:\n");
    int ret = posix_spawn(&pid, argv[1], NULL, NULL, argv + 1, NULL);
    printf("==> %d pid=%d\n", ret, pid);
}