term: break out fork+exec functionality to a separate file

This commit is contained in:
Daniel Eklöf 2020-07-15 12:39:10 +02:00
parent 4d17423ed1
commit 9cdccdd2ac
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 82 additions and 53 deletions

6
spawn.h Normal file
View file

@ -0,0 +1,6 @@
#pragma once
#include <stdbool.h>
#include "reaper.h"
bool spawn(struct reaper *reaper, const char *cwd, char *const argv[]);