Date: Tue, 23 Mar 1999 00:27:22 +0000 From: Karl Pielorz <kpielorz@tdx.co.uk> To: Greg Black <gjb@comkey.com.au> Cc: Masahiro Ariga <mariga@cd.mbn.or.jp>, freebsd-questions@FreeBSD.ORG Subject: Re: how to die gracefully Message-ID: <36F6DFEA.F0005E9@tdx.co.uk> References: <000501be7472$3bbeb400$064ca8c0@gateway> <36F65B11.610DAE9D@tdx.co.uk> <19990322213250.9969.qmail@alpha.comkey.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Black wrote: > > AFAIK - when your program quit's, the O/S should free up it's memory and close > > it's files etc. (as a kind of last-resort) - it's probably not good practice > > to rely on this though, especially if your program is designed to run for long > > periods of time... > > This is wrong. The OS reclaims everything when the program exits. Yes, _but_ it's still good practice to do your own housekeeping - especially if your program is going to be running hours on end - rather than have it eat file descriptors/memory etc. :-) (Which is the point I was making). > > SIGQUIT I think - check the man pages out (man signal)... > > Wrong. It's SIGINT. The QUIT signal is usually attached to > Ctl-\ and generates a core dump as well as interrupting the > process. Yeah, a 'redo' (like typo) at my end :-) -Kp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?36F6DFEA.F0005E9>