Commit d0ee07f8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Remove empty setproctitle() compat function.

parent 90708196
......@@ -43,10 +43,6 @@
#include <sys/types.h>
#include <sys/wait.h>
#ifndef HAVE_SETPROCTITLE
#include "compat/setproctitle.h"
#endif
#include "mgt.h"
#include "vsm.h"
#include "heritage.h"
......@@ -337,7 +333,9 @@ start_child(struct cli *cli)
continue;
(void)(close(i) == 0);
}
#ifdef HAVE_SETPROCTITLE
setproctitle("Varnish-Chld %s", heritage.name);
#endif
(void)signal(SIGINT, SIG_DFL);
(void)signal(SIGTERM, SIG_DFL);
......@@ -582,7 +580,9 @@ MGT_Run(void)
e->name = "mgt_sigchild";
AZ(vev_add(mgt_evb, e));
#ifdef HAVE_SETPROCTITLE
setproctitle("Varnish-Mgr %s", heritage.name);
#endif
memset(&sac, 0, sizeof sac);
sac.sa_handler = SIG_IGN;
......
......@@ -52,10 +52,6 @@
#include <priv.h>
#endif
#ifndef HAVE_SETPROCTITLE
#include "compat/setproctitle.h"
#endif
#ifdef __linux__
#include <sys/prctl.h>
#endif
......
......@@ -19,7 +19,6 @@ nobase_noinst_HEADERS = \
cli_serve.h \
compat/daemon.h \
compat/execinfo.h \
compat/setproctitle.h \
compat/srandomdev.h \
flopen.h \
http_headers.h \
......
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2009 Linpro AS
* All rights reserved.
*
* Author: Dag-Erling Smørgrav <des@des.no>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
*/
#ifndef COMPAT_SETPROCTITLE_H_INCLUDED
#define COMPAT_SETPROCTITLE_H_INCLUDED
#ifndef HAVE_SETPROCTITLE
void setproctitle(const char *fmt, ...);
#endif
#endif
......@@ -9,5 +9,4 @@ libvarnishcompat_la_LDFLAGS = -avoid-version
libvarnishcompat_la_SOURCES = \
daemon.c \
execinfo.c \
setproctitle.c \
srandomdev.c
/*-
* Copyright (c) 2006 Verdens Gang AS
* Copyright (c) 2006-2009 Linpro AS
* All rights reserved.
*
* Author: Dag-Erling Smørgrav <des@des.no>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#include "config.h"
#ifndef HAVE_SETPROCTITLE
#include <stdarg.h>
#include "compat/setproctitle.h"
void
setproctitle(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
/* XXX */
va_end(ap);
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment