use gcd to read child data and monitor if child is still alive.

git-svn-id: svn://qnap.local/TwoTerm/branches/gcd_dispatch@3105 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock
2016-07-06 17:15:13 +00:00
parent 5c4b05a4cc
commit 58499dda23
4 changed files with 198 additions and 33 deletions
+6
View File
@@ -30,6 +30,12 @@
int _child;
int _fd;
pid_t _pid;
dispatch_source_t _read_source;
dispatch_source_t _wait_source;
}
@property (nonatomic, retain) NSDictionary *parameters;