ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [PATCH] Asynchronous execution of processes
Date Fri, 09 Nov 2001 11:27:14 GMT
On Fri, 9 Nov 2001 22:18, Jose Alberto Fernandez wrote:
> > > This task is really command dependent. You need to know that "apache
> > > -stop" shuts down your server, for example. So to me this is just a
> > > regular <exec> or what have you, up to the user.
> >
> > not necessarily. On *nix I can go
> >
> > kill 1234
> > killall foo
> >
> > where my process is #1234 or named foo. This will send a quit or interupt
> > signal which will usually kill of a process gracefully (unless they
> > choose to ignore it or fail to shutodwn gracefully).
>
> I think this is way too OS dependant feature. Can you even obtain the
> processid using the JDK1.1 APIs? I am not sure of that. I do not even think
> all OSs have the same representation of ProcIDs as to be able to write
> something usefull to all.

win32 and unix have similar enough setups. (But the win9x are not actually 
able to do kill -9 reliably due to OS limitations). That said there is no 
Java API for this .. though there may be something similar - just not till 
jdk1.5 ;(

-- 
Cheers,

Pete

-------------------------------------------------------------
|  Egoism is the drug that soothes the pain of stupidity.   |
-------------------------------------------------------------

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message