summaryrefslogtreecommitdiff
path: root/src/activate/activate.c
Commit message (Collapse)AuthorAge
* acticate: rename --environment to --setenvZbigniew Jędrzejewski-Szmek2013-12-30
| | | | | | | Nspawn has --setenv, and systemd itself accepts systemd.setenv. It is nice to have the same parameter name everywhere. Old name is accepted, but not advertised.
* activate: fix error checking on epoll_ctl()Lennart Poettering2013-12-17
|
* activate: clean up inherited descriptorsZbigniew Jędrzejewski-Szmek2013-12-10
| | | | | | | | | | | | | | | | > [simon@troela server]$ /usr/lib/systemd/systemd-activate -l 9000 main.js > Assertion 'fd == 3 + count' failed at src/activate/activate.c:115, > function open_sockets(). Aborting. > Aborted (core dumped) > after a bit debuging i found the problem: > slim appears to leak an fd into all of its children: > stat /proc/14004/fd/3 (14004 is the pid a random process in my session) > File: '/proc/14004/fd/3' -> '/var/log/slim.log' systemd-activate should be robust against the shell (or anything else) leaking descriptors. Now everything except stdin/stdout/stderr and received sockets will be closed.
* remove unused variablesThomas Hindoe Paaboel Andersen2013-11-18
|
* activate: fix crash when -s is passedMantas Mikulėnas2013-11-14
| | | | getopt_long() was told to accept -s which was never implemented.
* activate: mention -E in the help textMantas Mikulėnas2013-11-14
|
* clients: fix some signal handler issuesLennart Poettering2013-11-08
|
* activate: print a nice message if no fd to listen on was specifiedLennart Poettering2013-11-07
|
* activate: port to use new getpeername_pretty()/getsockname_pretty() callsLennart Poettering2013-11-07
|
* activate: fix uninitialized memoryLennart Poettering2013-11-07
|
* active: rework make_socket_fd() to be based on socket_address_listen()Lennart Poettering2013-11-06
| | | | | Among other things this makes sure we set SO_REUSEADDR which is immensely useful.
* activate: reduce log settings to normalLennart Poettering2013-11-06
|
* activate: get rid of redundant definiton of fd_cloexec()Lennart Poettering2013-11-06
|
* clients: unify how we invoke getopt_long()Lennart Poettering2013-11-06
| | | | | Among other things this makes sure we always expose a --version command and show it in the help texts.
* replace tabs with spaces in various filesJason St. John2013-07-02
| | | | | | | | The affected files in this patch had inconsistent use of tabs vs. spaces for indentation, and this patch eliminates the stray tabs. Also, the opening brace of sigchld_hdl() in activate.c was moved so the opening braces are consistent throughout the file.
* move _cleanup_ attribute in front of the typeHarald Hoyer2013-04-18
| | | | http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
* activate: do not leak envp on errorZbigniew Jędrzejewski-Szmek2013-03-31
|
* activate: avoid warning from -WshadowZbigniew Jędrzejewski-Szmek2013-03-20
| | | | | | | | | src/activate/activate.c:167:51: warning: declaration shadows a variable in the global scope [-Wshadow] static int launch(char* name, char **argv, char **environ, int fds) { ^ /usr/include/unistd.h:546:15: note: previous declaration is here extern char **environ; ^
* systemd-activate: pass environment variables throughZbigniew Jędrzejewski-Szmek2013-03-15
| | | | | | | | | | | I need this to test half-installed socket-activated python script, which requires PYTHONPATH and LD_LIBRARY_PATH set. I assume that other people might find it useful to. -E VAR passes through VAR from the environment, while -E VAR=value sets VAR=value. systemd-activate -E PYTHONPATH=/var/tmp/inst1/usr/lib64/python3.3/site-packages -E LD_LIBRARY_PATH=/var/tmp/inst1/usr/lib -l 2000 python3 -c 'from systemd.daemon import listen_fds; print(listen_fds())'
* systemd-activate: add a socket-activation test toolZbigniew Jędrzejewski-Szmek2013-02-27