1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-04-28 05:05:41 +00:00

Fix the unixfork/unixcomm code to deal with pid over 65535 (#333)

* ForkUnixShell() can be a static procedure

* Restructure SAFEREAD() to be a little clearer

* Convert unixjob type field defines to an enum and fix related unhandled switch cases.

* Use local declaration of loop variables in for-loop, removing register attributes

* Restructure SAFEREAD() to be a little clearer

* Send and receive 2 additional bytes for pid.

* Prefer standard C99 "inline" over "__inline__" for SAFEREAD
This commit is contained in:
Nick Briggs
2021-02-08 18:26:56 -08:00
committed by GitHub
parent d482cc461c
commit 2aacca596b
3 changed files with 84 additions and 75 deletions

View File

@@ -1,5 +1,4 @@
#ifndef UNIXFORK_H
#define UNIXFORK_H 1
int fork_Unix(void);
int ForkUnixShell(int slot, char *PtySlave, char *termtype, char *shellarg);
#endif /* UNIXFORK_H */