> -----Original Message-----
> From: Jan Weil [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 30, 2001 8:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [linux-audio-dev] OSS question
> 
> 
> Iain Sandoe schrieb:
> > 
> > I wrote:
> > >> Do I have to setup a signal handler for SIGTERM to close 
> the audio
> > >> device properly?
> > >
> > > This shouldn't be necessary either.
> > 
> > Ok a replied too quickly - it is (only) when you get 
> SIGTERM that you have
> > the problem?
> > 
> 
> I am sorry, actually it is a SIGKILL :( 
> But a SIGTERM makes no difference.

  you cannot catch SIGKILL, but generally you shouldn't kill application
using SIGKILL (only if it does not respond to SIGTERM) - precisely for that
reason - it does not have a chance to exit gracefully.

  as for you problem - I guess setting a signal handler that closes audio
device (if still opened!) is the right way to go. It should be done by the
default exit routine though so I am not sure if you gain anything.

        erik

Reply via email to