/*-------------------------------------------------------------------------
 *  Listserv - Unix Mailing List manager (sub-set of FRECP's
 *             Bitnet Listserv tool.
 *
 *  Copyright (C) 1991,1992  Kimmo Suominen, Christophe Wolfhugel
 *
 *  Please read the files COPYRIGHT and AUTHORS for the extended
 *  copyrights refering to this file.
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 1, or (at your option)
 *  any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *----------------------------------------------------------------------*/

static char rcsid[] = "@(#)$Id: k.c,v 1.1 92/02/18 15:51:57 listserv Exp $";

/*
 * $Log:	k.c,v $
 * Revision 1.1  92/02/18  15:51:57  listserv
 * Initial revision
 * 
 */

#include <stdio.h>
#include <signal.h>
#include "conf.h"

void main()
{
   FILE *f;
   unsigned int pid;
   int rc;

   f=fopen(PIDFILE,"r");
   if (f==NULL) exit(0);
   rc=fscanf(f,"%u",&pid);
   fclose(f);
   if (rc>0) kill(pid,SIGUSR1);
   exit(0);
}
