mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-17 08:01:24 +00:00
clean PID before running
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@39770 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
58ced060bf
commit
196afa593c
1 changed files with 5 additions and 2 deletions
|
@ -250,7 +250,7 @@ static NSImage *downImage = nil;
|
|||
kill(subProcessId,SIGINT);
|
||||
#else
|
||||
HANDLE proc;
|
||||
NSLog(@"Windows - sending interrupt to %d", subProcessId);
|
||||
|
||||
proc = OpenProcess(PROCESS_ALL_ACCESS, FALSE, (DWORD)subProcessId);
|
||||
if (proc == NULL)
|
||||
{
|
||||
|
@ -275,7 +275,8 @@ static NSImage *downImage = nil;
|
|||
// action methods for toolbar...
|
||||
- (void) go: (id) sender
|
||||
{
|
||||
// [self setStatus: @"Running..."];
|
||||
/* each run makes a new PID but we parse it only if non-zero */
|
||||
[self setSubProcessId:0];
|
||||
[debuggerView putString: @"run\n"];
|
||||
}
|
||||
|
||||
|
@ -295,6 +296,8 @@ static NSImage *downImage = nil;
|
|||
{
|
||||
// [self setStatus: @"Restarting..."];
|
||||
[self interrupt];
|
||||
/* each run makes a new PID but we parse it only if non-zero */
|
||||
[self setSubProcessId:0];
|
||||
[debuggerView putString: @"run\n"];
|
||||
// [self setStatus: @"Running..."];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue