This is an OS and Shell combination problem. That's where you should look at, 
not ant.

When your terminal window (or no window) starts ant, it starts ant as 'another process 
in the same process group'.
When your terminal window dies, some signal-I-forget gets propagated to all the 
processes in the 'process group'.

'nohup' is supposed to detach your ant process from your terminal window's 'process 
group'.

Without nohup, your ant process will get the signal, and by default will kill itself.
With nohup, that signal is not propagated to your ant process, which continues its 
course.

Check the behaviour of your OS and Shell combination.

Suu Quan
Configuration Management & Release Engineering
Agilent Technologies
Bldg 54, between Posts G4-G5 
5301 Stevens Creek Blvd
Santa Clara, CA 95051
> -----Original Message-----
> From: Gruenewald, Terry E [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 30, 2003 8:57 AM
> To: Ant Users List
> Subject: RE: nohup not working with ant
> 
> 
> In my particular case, other Java processes start nohup just 
> fine.  It is
> just ant for some reason that is not working.  I can't 
> imagine what it could
> be, or why ant would care about the presence or absence of 
> the terminal.
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 30, 2003 10:52 AM
> To: [EMAIL PROTECTED]
> Subject: RE: nohup not working with ant
> 
> 
> We've seen similar problems when the Java processes are 
> started using secure
> shell - may be a red herring?
> 
> > -----Original Message-----
> > From: Tiago Ferraz Machado [mailto:[EMAIL PROTECTED]]
> > Sent: 30 January 2003 16:38
> > To: Ant Users List
> > Subject: RES: nohup not working with ant
> > 
> > 
> > I had the sam eproblem running a JBoss process in nohup at a SunOS :
> > 
> > uname -sr
> > SunOS 5.6
> > 
> > Does anyone have a clue about this ??
> > 
> > []'s
> > 
> > Tiago.
> > 
> > -----Mensagem original-----
> > De: Gruenewald, Terry E [mailto:[EMAIL PROTECTED]]
> > Enviada em: quinta-feira, 30 de janeiro de 2003 14:26
> > Para: [EMAIL PROTECTED]
> > Assunto: nohup not working with ant
> > 
> > 
> > When I run ant using nohup and in the background, it runs
> > okay.  However, if
> > I then log out of my session, ant exits as well.  Has anyone 
> > run into this
> > before?  Does anyone know how to fix this so that the usual 
> > behavior of
> > nohup works.  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to