The shutdown hooks do work on some versions of UNIX at least. I have been using them with Solaris 2.6 and 2.8 and JDK 1.3.x successfully for a long period.
-----Original Message----- From: Stephen Coy [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 10:21 To: [EMAIL PROTECTED] Subject: Re: [JBoss-dev] Shutdown hooks broken on OS X In my experience, shutdown hooks don't work reliably on *any* version of unix. I was building a command line driven server style of app in java about a year ago and discovered this. Tried it on MacOS X (first), and then thinking it was just the Mac, tried it on solaris (the deployment platform), and it did not work there either. So then I tried linux and HP-UX - no luck there either. I suspect it's an artifact of the limitations on what you can do with unix signal handlers. There is generally only a limited subset of system calls that they can make. Steve C. On Tuesday, November 19, 2002, at 08:01 PM, Dain wrote: > The shutdown hooks don't seem to work on OS X (10.2.2). When I press > ctrl-c or apple+. the VM just stops cold. Has anyone seen this? I am > using the following version of java: > > bash-2.05a$ java -version > java version "1.3.1" > Java(TM) 2 Runtime Environment, Standard Edition (build > 1.3.1-root_1.3.1_020714-12:46) > Java HotSpot(TM) Client VM (build 1.3.1_03-69, mixed mode) > > -dain ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development ---------------------------------------------------------------------- If you have received this e-mail in error or wish to read our e-mail disclaimer statement and monitoring policy, please refer to http://www.drkw.com/disc/email/ or contact the sender. ---------------------------------------------------------------------- ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
