From c7401c6c23169771822a9f5b98cfea304f1670cf Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Sun, 17 Jul 2011 17:48:18 +0200 Subject: server: Register signal handler to reopen logfiles on SIGHUP --- include/osmo-pcap/osmo_pcap_server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/osmo-pcap/osmo_pcap_server.h b/include/osmo-pcap/osmo_pcap_server.h index b408c47..1f2f6fc 100644 --- a/include/osmo-pcap/osmo_pcap_server.h +++ b/include/osmo-pcap/osmo_pcap_server.h @@ -63,6 +63,7 @@ struct osmo_pcap_conn { /* read buffering */ int state; int pend; + int reopen; char buf[4096]; struct osmo_pcap_data *data; }; @@ -80,6 +81,7 @@ struct osmo_pcap_server { extern struct osmo_pcap_server *pcap_server; +void osmo_pcap_server_reopen(struct osmo_pcap_server *server); int osmo_pcap_server_listen(struct osmo_pcap_server *server); struct osmo_pcap_conn *osmo_pcap_server_find(struct osmo_pcap_server *ser, const char *name); -- cgit v1.2.3