mirror of
https://github.com/netfun2000/lcd4linux.git
synced 2026-02-27 09:44:34 +08:00
[lcd4linux @ 2006-07-12 20:47:51 by reinelt]
indent git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@668 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $Id: plugin_exec.c,v 1.10 2006/07/12 20:45:30 reinelt Exp $
|
||||
/* $Id: plugin_exec.c,v 1.11 2006/07/12 20:47:51 reinelt Exp $
|
||||
*
|
||||
* plugin for external processes
|
||||
*
|
||||
@@ -27,6 +27,9 @@
|
||||
*
|
||||
*
|
||||
* $Log: plugin_exec.c,v $
|
||||
* Revision 1.11 2006/07/12 20:47:51 reinelt
|
||||
* indent
|
||||
*
|
||||
* Revision 1.10 2006/07/12 20:45:30 reinelt
|
||||
* G15 and thread patch by Anton
|
||||
*
|
||||
@@ -178,6 +181,8 @@ static void exec_thread(void *data)
|
||||
|
||||
static void destroy_exec_thread(const int n)
|
||||
{
|
||||
kill(Thread[n].pid, SIGKILL);
|
||||
|
||||
if (Thread[n].mutex != 0)
|
||||
mutex_destroy(Thread[n].mutex);
|
||||
if (Thread[n].cmd)
|
||||
@@ -186,7 +191,7 @@ static void destroy_exec_thread(const int n)
|
||||
free(Thread[n].key);
|
||||
if (Thread[n].ret)
|
||||
shm_destroy(Thread[n].shmid, Thread[n].ret);
|
||||
kill(Thread[n].pid,SIGKILL);
|
||||
|
||||
Thread[n].delay = 0;
|
||||
Thread[n].mutex = 0;
|
||||
Thread[n].pid = 0;
|
||||
|
||||
Reference in New Issue
Block a user