Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
d0ee07f8
Commit
d0ee07f8
authored
May 12, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove empty setproctitle() compat function.
parent
90708196
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
95 deletions
+4
-95
mgt_child.c
bin/varnishd/mgt_child.c
+4
-4
mgt_sandbox.c
bin/varnishd/mgt_sandbox.c
+0
-4
Makefile.am
include/Makefile.am
+0
-1
setproctitle.h
include/compat/setproctitle.h
+0
-38
Makefile.am
lib/libvarnishcompat/Makefile.am
+0
-1
setproctitle.c
lib/libvarnishcompat/setproctitle.c
+0
-47
No files found.
bin/varnishd/mgt_child.c
View file @
d0ee07f8
...
...
@@ -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
;
...
...
bin/varnishd/mgt_sandbox.c
View file @
d0ee07f8
...
...
@@ -52,10 +52,6 @@
#include <priv.h>
#endif
#ifndef HAVE_SETPROCTITLE
#include "compat/setproctitle.h"
#endif
#ifdef __linux__
#include <sys/prctl.h>
#endif
...
...
include/Makefile.am
View file @
d0ee07f8
...
...
@@ -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
\
...
...
include/compat/setproctitle.h
deleted
100644 → 0
View file @
90708196
/*-
* 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
lib/libvarnishcompat/Makefile.am
View file @
d0ee07f8
...
...
@@ -9,5 +9,4 @@ libvarnishcompat_la_LDFLAGS = -avoid-version
libvarnishcompat_la_SOURCES
=
\
daemon.c
\
execinfo.c
\
setproctitle.c
\
srandomdev.c
lib/libvarnishcompat/setproctitle.c
deleted
100644 → 0
View file @
90708196
/*-
* 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment