begin simple child process interface
This commit is contained in:
parent
8991d8ec04
commit
2e10e88504
3 changed files with 82 additions and 14 deletions
14
cli/child.h
Normal file
14
cli/child.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef DORNE_CHILD_H
|
||||
#define DORNE_CHILD_H
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
struct d_child {
|
||||
pid_t pid;
|
||||
int fdmx; /* PTY master fd (read/write) */
|
||||
int fderr; /* child's stderr (readonly) */
|
||||
} __attribute__((packed, aligned(4)));
|
||||
|
||||
int spawnchild(struct d_child *child);
|
||||
|
||||
#endif /* DORNE_CHILD_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue