From 3922b543ba7d46fc5787fcfd08554e6b2126e1ec Mon Sep 17 00:00:00 2001 From: Bryce Kerley Date: Thu, 13 Nov 2008 17:40:32 -0500 Subject: [PATCH] Wait for a child to clear it out. --- PBEasyPipe.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBEasyPipe.m b/PBEasyPipe.m index 1fe7f37..b18c12e 100644 --- a/PBEasyPipe.m +++ b/PBEasyPipe.m @@ -106,7 +106,7 @@ NSData* data = [handle readDataToEndOfFile]; NSString* string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; - + [task waitUntilExit]; // Strip trailing newline if ([string hasSuffix:@"\n"]) string = [string substringToIndex:[string length]-1];