Snort mailing list archives
Control socket and daemon mode
From: Eugenio Pérez <eupm90 () gmail com>
Date: Wed, 4 Jun 2014 11:18:09 +0200
Hi everyone! I've found an issue in snort v2.9.6.1. When I'm trying to use control socket with snort in daemon mode, I get no response from snort. I've found that it is caused by mixing threads and fork calls. Currently, snort creates the control socket thread before doing the fork, so the children cannot access to CS thread anymore. I've just delayed the call to ControlSocketInit() from SnortInit() to SnortStartThreads(), and now it works fine to me. I don't know if this have any other side effect. Waiting for responses, opinions and suggestions.
Attachment:
cs_daemon.patch
Description:
------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech
_______________________________________________ Snort-devel mailing list Snort-devel () lists sourceforge net https://lists.sourceforge.net/lists/listinfo/snort-devel Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- Control socket and daemon mode Eugenio Pérez (Jun 04)