summaryrefslogtreecommitdiffstats
path: root/src/shell.c
AgeCommit message (Collapse)Author
2014-05-31Unblock signals only during poll/epoll waitMatthias Schiffer
If signals are normally blocked, we can avoid a lot of EINTR handling.
2014-05-29Document *everything*Matthias Schiffer
2014-05-28Still more documentationMatthias Schiffer
2014-05-27More documentationMatthias Schiffer
2014-05-27Lots and lots of documentationMatthias Schiffer
2014-05-23shell: ensure the signal mask is restored if shell_command_do_exec failsMatthias Schiffer
2014-05-23Implement a different fix for the waitpid race condition not needing a ↵Matthias Schiffer
reaper thread for each child
2014-05-23Revert "Fix waitpid race condition"Matthias Schiffer
This reverts commit 47d84679d6fe71f56d3a013578007dff92ff72db.
2014-05-22Fix waitpid race conditionMatthias Schiffer
Doing a waitpid for all processes in the SIGCHLD handler could sometimes steal a signal from a fastd_shell_command_exec_sync call. To fix this, don't reap the children in the SIGCHLD handler anymore, but create a reaper thread for each asynchronous shell command.
2014-04-30shell: close all fds > 2 after forkingMatthias Schiffer
socket/fcntl to set FD_CLOEXEC isn't thread-safe with async verify handlers, and SOCK_CLOEXEC isn't portable.
2014-04-26Revise shell command APIMatthias Schiffer
2014-04-20Make ctx globalMatthias Schiffer
2014-04-20Make conf globalMatthias Schiffer
2014-04-18shell: unblock SIGCHLD before execMatthias Schiffer
2014-04-18Fix zombie process cleanupMatthias Schiffer
2014-04-18Clean up shell command handlingMatthias Schiffer
2014-04-11Add support for async commandsMatthias Schiffer
2014-04-11Improve shell command config handlingMatthias Schiffer
2014-03-14Adjust copyright yearsMatthias Schiffer
2013-08-12Add pre-up and post-down handlersMatthias Schiffer
2013-08-07Add sys/wait.h includes where necessary on FreeBSDMatthias Schiffer
2013-07-25Move _GNU_SOURCE define to types.hMatthias Schiffer
2013-04-21shell: add interface for link-local addresses to PEER_ADDRESS as wellMatthias Schiffer
2013-04-20Always include interface name for link-local addressesMatthias Schiffer
2013-02-27Don't set the peer address for temporary peers before the session is ↵Matthias Schiffer
actually established Doing so could lead to duplicate address entries in different peers, causing very strange behaviour. Add additional parameters for the local and the peer address to fastd_shell_exec() to allow the on-verify script to use this information nevertheless.
2013-02-25Fix shell command exit status message, for real.Matthias Schiffer
2013-02-25Fix shell exit status warning conditionMatthias Schiffer
2013-02-25Add public keys to shell environmentMatthias Schiffer
2013-02-25Set some more environment variables for shell commandsMatthias Schiffer
2013-02-25Get rid of some duplicate code for calling shell commandsMatthias Schiffer