Author: rmottola
Date: Tue May 3 23:31:37 2016
New Revision: 39717
URL: http://svn.gna.org/viewcvs/gnustep?rev=39717&view=rev
Log:
initialize the PID and use it
Modified:
apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m
Modified: apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m
URL:
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m?rev=39717&r1=39716&r2=39717&view=diff
==============================================================================
--- apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m
(original)
+++ apps/projectcenter/trunk/Modules/Debuggers/ProjectCenter/PCDebugger.m
Tue May 3 23:31:37 2016
@@ -138,6 +138,8 @@
[viewDelegate setTextView:debuggerView];
[viewDelegate setDebugger:self];
[viewDelegate release];
+
+ subProcessId = 0;
}
return self;
}
@@ -221,17 +223,16 @@
// kill process
- (void) interrupt
{
- int pid = [debuggerView subProcessId];
- if(pid != 0)
+ if(subProcessId != 0)
{
#ifndef __MINGW32__
- kill(pid,SIGINT);
+ kill(subProcessId,SIGINT);
#else
// on windows we run tskill as a shell command
NSTask *t;
NSArray *args;
- args = [NSArray arrayWithObjects:[NSString stringWithFormat:@"%d", pid],
nil];
+ args = [NSArray arrayWithObjects:[NSString stringWithFormat:@"%d",
subProcessId], nil];
t = [NSTask new];
[t setLaunchPath:@"tskill.exe"];
[t launch];
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs