My Java
processes do not quit if I pipe their output to null:
�NSTask *task = [NSTask new];
�[task setLaunchPath:execPath];
�[task setCurrentDirectoryPath:_directory];
�[task setArguments:arguments];
�[task setStandardError:[NSFileHandle fileHandleWithNullDevice]];
�[task setStandardOutput:[NSFileHandle fileHandleWithNullDevice]];
�[task launch];
Ling Peng
在 2012年1月19日,18:40,<cocoa-dev-request...> 写道:
> My Java
> processes do not quit if I pipe their output to null:
> �NSTask *task = [NSTask new];
> �[task setLaunchPath:execPath];
> �[task setCurrentDirectoryPath:_directory];
> �[task setArguments:arguments];
> �[task setStandardError:[NSFileHandle fileHandleWithNullDevice]];
> �[task setStandardOutput:[NSFileHandle fileHandleWithNullDevice]];
> �[task launch];