summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2010-11-22 18:35:40 +0000
committerChristian Pointner <equinox@spreadspace.org>2010-11-22 18:35:40 +0000
commitd46f140826000fb8cfd5d0522e0ad32abeeaecc6 (patch)
tree1f3b5dc6ff7ee6b6a8adc6db368eb8fb6a63f338
parentexec works now with prepared stdio setup (diff)
cleanup
git-svn-id: https://svn.spreadspace.org/gcsd/trunk@51 ac14a137-c7f1-4531-abe0-07747231d213
-rw-r--r--src/l_util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/l_util.c b/src/l_util.c
index 0b943a5..9cce024 100644
--- a/src/l_util.c
+++ b/src/l_util.c
@@ -392,9 +392,6 @@ static int l_util_exec(lua_State *L)
}
execve(script, argv, evp);
- // if execve returns, an error occurred, but logging doesn't work
- // because we closed all file descriptors, so just write errno to
- // pipe and call exit
int ret = write(pipefd[1], (void*)(&errno), sizeof(errno));
free_ptrptr(argv);
free_ptrptr(evp);