Source

PRHTask / PRHTask.m

Author Commit Message Labels Comments Date
Mark Aufflick
solved crash in Core Foundation after fork()
Peter Hosey
Silenced a few changing-signedness warnings that emerged when I enabled a strict warnings profile.
Peter Hosey
Tell the compiler that we are, in fact, not returning from this function.
Peter Hosey
Don't leak quite so much memory.
Peter Hosey
Don't release any GCD objects we don't have. Doing so can cause a crash.
Peter Hosey
Actually use the current directory if it's set. Oops.
Peter Hosey
Support passing an array for the first argument as well as any subsequent argument.
Peter Hosey
Implemented the environment property.
Peter Hosey
Implemented support for passing an array to the varargs construction method, and changed the test program to demonstrate and test this.
Peter Hosey
Fixed taskWithProgramName:arguments:, which had been omitting the name (oops) and first argument (double oops) and potentially going off the end of the argument list (triple oops).
Peter Hosey
Fixing a broken artifact of an earlier attempt to fix a since-fixed bug.
Peter Hosey
Avert a retain cycle. Thanks to Colin Barrett (@cbarrett) and Kevin Ballard (@eridius) for reminding me of this on Twitter. https://twitter.com/cbarrett/status/124995725867229184 https://twitter.com/eridius/status/124995751255343104
Peter Hosey
Create our own NSFileManager rather than using defaultManager, as recommended by the docs since 10.5.
Peter Hosey
Switched from NSFileHandle/NSNotification-based reading to dispatch_source, actually hooked up the FDs, and added code to the test app to prove that accumulating output works.
Peter Hosey
Reimplemented NSTask from the ground up. The running-a-process part works; accumulating output, while implemented, doesn't yet.
Peter Hosey
Initial check-in of completed, but non-working, NSTask subclass. Fails because NSTask is really an abstract class, so we're not inheriting the implementations we need.