aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-02-12 00:09:11 +1000
committerDavid Walter Seikel2012-02-12 00:09:11 +1000
commit9929ff19ea5e96bd910a8cfc7ee94d43c277dbc3 (patch)
treef287650c4fbf5d6e09b619a82d25a0e99a9608a4 /LuaSL
parentNew sendBack and sendForth global functions. (diff)
downloadSledjHamr-9929ff19ea5e96bd910a8cfc7ee94d43c277dbc3.zip
SledjHamr-9929ff19ea5e96bd910a8cfc7ee94d43c277dbc3.tar.gz
SledjHamr-9929ff19ea5e96bd910a8cfc7ee94d43c277dbc3.tar.bz2
SledjHamr-9929ff19ea5e96bd910a8cfc7ee94d43c277dbc3.tar.xz
Missed this in the SID change commit.
Diffstat (limited to 'LuaSL')
-rw-r--r--LuaSL/src/LuaSL_main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/LuaSL/src/LuaSL_main.c b/LuaSL/src/LuaSL_main.c
index 41fa45a..6daa97d 100644
--- a/LuaSL/src/LuaSL_main.c
+++ b/LuaSL/src/LuaSL_main.c
@@ -43,7 +43,10 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Client_D
43 } 43 }
44 else if (0 == strcmp(command, "start()")) 44 else if (0 == strcmp(command, "start()"))
45 { 45 {
46 newProc(SID, TRUE); 46 char buf[PATH_MAX];
47
48 sprintf(buf, "%s.lua.out", SID);
49 newProc(buf, TRUE);
47 } 50 }
48 else if (0 == strcmp(command, "exit()")) 51 else if (0 == strcmp(command, "exit()"))
49 { 52 {
@@ -52,11 +55,9 @@ static Eina_Bool _data(void *data, int type __UNUSED__, Ecore_Con_Event_Client_D
52 } 55 }
53 else 56 else
54 { 57 {
55 char temp[PATH_MAX];
56 const char *status = NULL; 58 const char *status = NULL;
57 59
58 snprintf(temp, sizeof(temp), "%s.events", SID); 60 status = sendToChannel(SID, command, NULL, NULL);
59 status = sendToChannel(temp, command, NULL, NULL);
60 if (status) 61 if (status)
61 PE("Error sending command %s to script %s : %s", command, SID, status); 62 PE("Error sending command %s to script %s : %s", command, SID, status);
62 } 63 }