diff options
author | Christian Pointner <equinox@anytun.org> | 2014-06-08 18:41:58 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-06-08 18:41:58 +0000 |
commit | 1604cea7467a76866dcf4efc067d910712a869a0 (patch) | |
tree | 1aabbd79088761c025a0e45a7acfee96caff2e13 /src/sysexec.c | |
parent | fixed errnous copy of remote end (diff) |
merged most changes from rail branch to trunk
Diffstat (limited to 'src/sysexec.c')
-rw-r--r-- | src/sysexec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sysexec.c b/src/sysexec.c index 708d8d0..1191401 100644 --- a/src/sysexec.c +++ b/src/sysexec.c @@ -13,9 +13,9 @@ * message authentication based on the methodes used by SRTP. It is * intended to deliver a generic, scaleable and secure solution for * tunneling and relaying of packets of any protocol. - * * - * Copyright (C) 2007-2010 Christian Pointner <equinox@anytun.org> + * + * Copyright (C) 2007-2014 Christian Pointner <equinox@anytun.org> * * This file is part of uAnytun. * @@ -82,7 +82,7 @@ int uanytun_exec(const char* script, char* const argv[], char* const evp[]) log_printf(WARNING, "can't open stderr"); } execve(script, argv, evp); - // if execve returns, an error occurred, but logging doesn't work + // 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)); @@ -107,7 +107,7 @@ int uanytun_exec(const char* script, char* const argv[], char* const evp[]) } } if(WIFEXITED(status)) - log_printf(NOTICE, "script '%s' returned %d", script, WEXITSTATUS(status)); + log_printf(NOTICE, "script '%s' returned %d", script, WEXITSTATUS(status)); else if(WIFSIGNALED(status)) log_printf(NOTICE, "script '%s' terminated after signal %d", script, WTERMSIG(status)); else |