bugGNUstep - Bugs: bug #13175, [NSTask launch] doen't work on...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #13175: [NSTask launch] doen't work on Windows

Submitted by:  None
Submitted on:  Tue 24 May 2005 04:03:07 PM UTC  
 
Category: Base/FoundationSeverity: 3 - Normal
Item Group: BugStatus: Fixed
Privacy: PublicAssigned to: Richard Frith-Macdonald <CaS>
Open/Closed: Closed

Thu 07 Jul 2005 09:35:29 AM UTC, comment #3:

Seems to be ok now.

Richard Frith-Macdonald <CaS>
Project MemberIn charge of this item.
Thu 07 Jul 2005 09:06:55 AM UTC, comment #2:

They work for me on a productive system.

Thanks
Marc

Anonymous
Sat 04 Jun 2005 09:11:42 AM UTC, comment #1:

I've made the suggested changes in CVS ... please let me know if they work for you.

Richard Frith-Macdonald <CaS>
Project MemberIn charge of this item.
Tue 24 May 2005 04:03:07 PM UTC, original submission:

Hi,

Here are 2 snippets out of NSTask.m

[snip]
/**

  • Returns the standard input stream for the task - an NSFileHandle
  • unless an NSPipe was passed to -setStandardInput:

*/
- (id) standardInput

[/snap]

[snip out of [NSConcreteWindowsTask launch]]
start_info.hStdInput = [[self standardInput] nativeHandle];
[/snap]

This, of couse, doesn't work. There's no [NSPipe nativeHandle] method.

Patch should look somehow like this (take a look at [NSConcreteUnixTask launch]):

if ([hdl isKindOfClass: [NSPipe class]])
{
hdl = [hdl fileHandleForReading];
// make sure to close close it
}

start_info.hStdInput = [hdl nativeHandle];

regards
Marc

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Thu 07 Jul 2005 09:35:29 AM UTCCaSStatusNone=>Fixed
  Open/ClosedIn Test=>Closed
Sat 04 Jun 2005 09:11:42 AM UTCCaSOpen/ClosedOpen=>In Test
Sat 04 Jun 2005 09:11:41 AM UTCCaSAssigned toNone=>CaS

Back to the top


Powered by Savane 3.1-cleanup1