Bug 19207 - [ExternalTools] Shell script cannot be cancelled and can hang Eclipse
Summary: [ExternalTools] Shell script cannot be cancelled and can hang Eclipse
Status: RESOLVED DUPLICATE of bug 17112
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux
: P2 major (vote)
Target Milestone: 2.0 F3   Edit
Assignee: Ryan Cooper CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-06-04 16:21 EDT by Adam Schlegel CLA
Modified: 2002-09-18 13:58 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Schlegel CLA 2002-06-04 16:21:12 EDT
The following shell script will hang Eclipse when it is run as an External 
tool. The problem seems to be that the script is waiting for keyboard input, 
but Eclipse cannot provide any. 

#! /bin/sh
cat

The real problem here is that the cancel button on the progress monitor does 
not kill execution of the shell script, and recover. The script seems to be run 
in a state such that the cancelled status of the progress monitor is not being 
polled.
Comment 1 Simon Arsenault CLA 2002-06-06 13:06:30 EDT
It's probably because the program runner waits on the process running the 
external program. We could change it to have a loop to poll the status of the 
process and then sleep.

I guess the question is how likely will someone run an external tool that will 
prompt for information?
Comment 2 Nick Edgar CLA 2002-06-06 16:58:49 EDT
The hang could be avoided if we ran external tools in another thread and 
avoided the progress monitor.

Comment 3 Ryan Cooper CLA 2002-06-07 13:10:04 EDT

*** This bug has been marked as a duplicate of 17112 ***