mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
a42eaf02f6
commit
18c6fddb3b
2 changed files with 10 additions and 3 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue