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-requ...@lists.apple.com 写道: > 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]; _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com