term: move client startup to a new function, slave_spawn()

This commit is contained in:
Daniel Eklöf 2019-10-30 18:05:03 +01:00
parent 348f3738da
commit 18921f7f45
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 79 additions and 61 deletions

View file

@ -1,4 +1,7 @@
#pragma once
#include <stdbool.h>
void slave_exec(int ptmx, char *const argv[], int err_fd);
#include <sys/types.h>
pid_t slave_spawn(
int ptmx, int argc, char *const *argv, const char *conf_shell);