"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ec_plugins.c" between
ettercap-0.8.3.tar.gz and ettercap-0.8.3.1.tar.gz

About: ettercap is a multipurpose sniffer/interceptor/logger for switched LAN.

ec_plugins.c  (ettercap-0.8.3):ec_plugins.c  (ettercap-0.8.3.1)
skipping to change at line 325 skipping to change at line 325
*/ */
int plugin_kill_thread(char *name, char *thread) int plugin_kill_thread(char *name, char *thread)
{ {
struct plugin_entry *p; struct plugin_entry *p;
int ret; int ret;
pthread_t pid; pthread_t pid;
pid = ec_thread_getpid(thread); pid = ec_thread_getpid(thread);
/* do not execute if not being a thread */ /* do not execute if not being a thread */
if (pthread_equal(pid, EC_PTHREAD_NULL)) if (pthread_equal(pid, ec_thread_getpid(NULL)))
return -E_INVALID; return -E_INVALID;
/* the thread can only kill itself */ /* the thread can only kill itself */
if (!pthread_equal(pid, pthread_self())) if (!pthread_equal(pid, pthread_self()))
return -E_INVALID; return -E_INVALID;
DEBUG_MSG("plugin_kill_thread"); DEBUG_MSG("plugin_kill_thread");
KILL_LOCK; KILL_LOCK;
SLIST_FOREACH(p, &plugin_head, next) { SLIST_FOREACH(p, &plugin_head, next) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)