delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/22/18:57:53

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <006201c1bbfd$282de160$0a02a8c0@pc>
From: "Andrea Viscovich" <anviscov AT tin DOT it>
To: <cygwin AT cygwin DOT com>
Subject: cygrunsrv (stop error in cygwin app)
Date: Sat, 23 Feb 2002 01:00:50 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2483.0001
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2483.0001

Hi, I'm trying to run cygsurnsrv to start kannel (a project built with
cygwin).
It works, but when trying to stop it, it sais error 1053.
Maybe there is some special -s parameter to add, but I didn't find out.
Maybe the was an earlier version of cygrunsrv which worked, as
someone told me it works for him giving the same command line I gave.
Any hints on where to start?
Inside kannel this should be the function which handles signals:
static void signal_handler(int signum)
{
    /* On some implementations (i.e. linuxthreads), signals are delivered
     * to all threads.  We only want to handle each signal once for the
     * entire box, and we let the gwthread wrapper take care of choosing
     * one.
     */
    if (!gwthread_shouldhandlesignal(signum))
 return;

    if (signum == SIGINT || signum == SIGTERM) {

 mutex_lock(status_mutex);
        if (bb_status != BB_SHUTDOWN && bb_status != BB_DEAD) {

            warning(0, "Killing signal received, shutting down...");

     mutex_unlock(status_mutex);
     bb_shutdown();
     return;
        }
        else if (bb_status == BB_SHUTDOWN) {
            warning(0, "New killing signal received, killing
neverthless...");
            bb_status = BB_DEAD;
        }
        else if (bb_status == BB_DEAD) {
     panic(0, "cannot die by its own will");
 }
 mutex_unlock(status_mutex);
    } else if (signum == SIGHUP) {
        warning(0, "SIGHUP received, catching and re-opening logs");
        log_reopen();
        alog_reopen();
 store_load();
    }
}

Andrea


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019