Re: Signal handling

"Andrea Viscovich" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
----- Original Message ----- 
From: "Stipe Tolj" <[email protected]>
Cc: <[email protected]>
Sent: Monday, February 25, 2002 2:01 PM
Subject: Re: Signal handling


> > [email protected] wrote:
> > 
> > I would like to undesrtand signal handling
> > in bearer and smsbox
> > I found that the only difference is that smsbox doesn't
> > handle SIGTERM, instead bearerbox does handle it.
> > I would like to take it away from bearerbox.
> > This because In WiNT I think that runnin bearer as a service
> > has a problem when stopping it, caused by SIGTERM.
> 
> AFAIK, I haven't seen any problems with cygrunsrv. Please describe
> what's the problem about it.
> 
Here is the problem:
I do  cygrunsrv -E bearerbox and I got an error 1053 after few minutes.
it's a timeout, application didnt answer etc.
And of course bearer is still an active task.
I now recompiled it, 
commenting out SIGTERM, in bearerbox.c (see below)
and now it works.
By the way when I stop the service I don't see anything in the log,
maybe I should add some info() somewhere.

I'm really surprised as you tell me it works.
I tried in WINNT 4.0 sp6, W2K professional,
cygrunsrv 094-2, cygwin1.dll 1.3.9 (latest)
Bye
Andrea
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.