This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 245474 - Stopping the currently executing build does not kill generated child processes on OS X
Summary: Stopping the currently executing build does not kill generated child processe...
Status: RESOLVED DUPLICATE of bug 195537
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 242231 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-07-08 11:04 UTC by kasperhirvikoski
Modified: 2016-06-10 13:43 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Example project (377.54 KB, application/x-gzip)
2014-07-08 11:04 UTC, kasperhirvikoski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kasperhirvikoski 2014-07-08 11:04:38 UTC
Created attachment 147933 [details]
Example project

Stopping the currently executing build (from the output window) does not kill generated child processes on OS X when NetBeans’s run-action has been configured to run a task that creates child processes.

Affecting: OS X 10.9.3 (13D65), Java 1.8.0_05, NetBeans 8.0 (Build 201403101706)

Works as expected on Ubuntu 12.04 LTS.

Steps:

1. Run a project with a custom NetBeans run-action.
2. Run-action generates child processes.
3. Stop the currently executing build from the output window.
4. The main process is killed, but the child processes remain.

See attached project example.
Comment 1 Tomas Zezula 2014-07-11 08:29:45 UTC
Nothing to do with java.project.
Comment 2 Petr Hejl 2014-07-15 15:11:41 UTC
*** Bug 242231 has been marked as a duplicate of this bug. ***
Comment 3 Petr Hejl 2014-07-18 14:50:57 UTC
*** Bug 232322 has been marked as a duplicate of this bug. ***
Comment 4 Petr Hejl 2015-03-09 12:34:07 UTC
Can you test with a recent daily build? This is likely duplicate of #195537.
Comment 5 Petr Hejl 2015-03-12 13:19:39 UTC

*** This bug has been marked as a duplicate of bug 195537 ***
Comment 6 luiz_souza 2016-06-10 11:56:23 UTC
I'm running on OSX 10.11.5 with an updated Netbeans 8.1 (Build 201510222201).

The problem still persists. The project I'm running is a server, and in order to be able to kill the process, I look up for the process which is using the port I configure after "killing" the execution on netbeans, and then killing that process.

lsof -i :PORT
kill -9 PID

Here's the complete info on "About Netbeans":

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
System: Mac OS X version 10.11.5 running on x86_64; UTF-8; en_US (nb)
Comment 7 Petr Hejl 2016-06-10 13:43:23 UTC
(In reply to luiz_souza from comment #6)
> I'm running on OSX 10.11.5 with an updated Netbeans 8.1 (Build 201510222201).
> 
> The problem still persists. The project I'm running is a server, and in
> order to be able to kill the process, I look up for the process which is
> using the port I configure after "killing" the execution on netbeans, and
> then killing that process.
> 
> lsof -i :PORT
> kill -9 PID
> 
> Here's the complete info on "About Netbeans":
> 
> Product Version: NetBeans IDE 8.1 (Build 201510222201)
> Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
> Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14
> Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14
> System: Mac OS X version 10.11.5 running on x86_64; UTF-8; en_US (nb)

Please test with the latest dev build. Should be resolved.