Trivial MacOS-X compatibility fix

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21424 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2005-07-08 05:59:26 +00:00
parent a42eaf02f6
commit 18c6fddb3b
2 changed files with 10 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2005-07-08 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSTask.m: Fix bug #13685 ... raise exception on an attempt
to re-launch a task.
2005-07-04 Adam Fedor <fedor@gnu.org>
* Documentation/ReleaseNotes.gsdoc: Update.

View file

@ -382,7 +382,7 @@ pty_slave(const char* name)
* Launches the task.<br />
* Raises an NSInvalidArgumentException if the launch path is not
* set or if the subtask cannot be started for some reason
* (eg. the executable does not exist).
* (eg. the executable does not exist or the task has already been launched).
*/
- (void) launch
{
@ -1080,7 +1080,8 @@ quotedFromString(NSString *aString)
if (_hasLaunched)
{
return;
[NSException raise: NSInvalidArgumentException
format: @"NSTask - task has already been launched"];
}
lpath = [self _fullLaunchPath];
@ -1308,7 +1309,8 @@ GSCheckTasks()
if (_hasLaunched)
{
return;
[NSException raise: NSInvalidArgumentException
format: @"NSTask - task has already been launched"];
}
lpath = [self _fullLaunchPath];