Commit graph

37 commits

Author SHA1 Message Date
Lennart Poettering c27488016e execute: make flags_fds() parameters const 2010-04-13 20:43:02 +02:00
Lennart Poettering e1f5e05109 execute: minor cleanups 2010-04-13 19:02:19 +02:00
Lennart Poettering 02a51abad1 execute: chown() the tty when running owning them 2010-04-13 18:50:43 +02:00
Lennart Poettering b8d3418f7b execute: get rid of gcc warning 2010-04-13 18:37:36 +02:00
Lennart Poettering 7b68387983 execute: reset signal handlers when executing 2010-04-13 04:49:50 +02:00
Lennart Poettering 80876c20f6 rework tty handling
We now make sure to run all services in their own session, possibly with
a controlling terminal.

This also extends the service and socket state machines a little.
2010-04-13 02:06:27 +02:00
Lennart Poettering 43d0fcbd3f execute: introduce exec_command_done() to free data from static ExecCommand structs 2010-04-10 18:00:34 +02:00
Lennart Poettering 26fd040d4a execute: introduce exec_command_set() for easy setting for command lines 2010-04-10 18:00:34 +02:00
Lennart Poettering 1a63a75010 execute: improve exec_spawn() logging 2010-04-10 18:00:34 +02:00
Lennart Poettering 9fb867204f execute: automatically record start/exit timestamps for forked processes 2010-04-10 18:00:21 +02:00
Lennart Poettering ee2b489421 service: optionally, call setsid() on services 2010-04-07 23:23:58 +02:00
Lennart Poettering a0d40ac588 util: move close_all_fds() to util.c 2010-04-06 23:35:59 +02:00
Lennart Poettering e2c76839a3 execute: use fd_nonblock()//fd_cloexec() where applicable 2010-04-06 21:53:39 +02:00
Lennart Poettering 8e27452380 cgroup: add cgroupsification 2010-03-31 16:29:55 +02:00
Lennart Poettering 693ced4872 execute: try to suppress PR_SET_SECUREBITS if unnecessary 2010-03-31 16:25:33 +02:00
Lennart Poettering 81a2b7ceda execute: implement privilige dropping properly 2010-02-14 22:43:08 +01:00
Lennart Poettering a6a80b4f44 execute: simplify appending to execution list 2010-02-14 01:05:55 +01:00
Lennart Poettering 451a074fd5 execute: allow configuration of O_NONBLOCK flag from .service files 2010-02-12 02:00:18 +01:00
Lennart Poettering 09a3bb9302 execute: drop now unnecessary GCC pragma again 2010-02-03 17:23:34 +01:00
Lennart Poettering 47be870bd8 build: basic autoconfization 2010-02-03 14:21:48 +01:00
Lennart Poettering a7334b0952 license: add GPLv2+ license blurbs everwhere 2010-02-03 13:03:47 +01:00
Kay Sievers 66ee3769cb use linux/sched.h instead of sched.h for older glibc 2010-02-02 13:56:37 +01:00
Lennart Poettering cc13a98b68 build: make gcc shut up 2010-02-02 13:23:15 +01:00
Lennart Poettering 38b48754f7 execute: allow configuration of SCHED_RESET_ON_FORK 2010-02-02 12:50:04 +01:00
Lennart Poettering ea4309869e add basic (and not very useful) D-Bus support 2010-02-01 03:33:24 +01:00
Lennart Poettering 94f043472a greatly extend what we enforce as process properties 2010-01-30 01:55:42 +01:00
Lennart Poettering 9eba9da4bc support chrooting/setting of ioprio when spawning 2010-01-29 20:46:22 +01:00
Lennart Poettering fb33a393e2 set nice/oom_adjust only when asked for 2010-01-28 02:53:56 +01:00
Lennart Poettering 071830ff32 implement proper logging for services 2010-01-28 02:06:20 +01:00
Lennart Poettering 47a71eed0f drop O_CLOEXEC/O_NONBLOCK from files intended for forked clients 2010-01-27 06:18:45 +01:00
Lennart Poettering 309bff19ed reset signal mask when forking 2010-01-27 06:17:51 +01:00
Lennart Poettering 2da3263ab6 fix an assert when forking 2010-01-27 05:30:58 +01:00
Lennart Poettering acbb02252a yay, we can start socket units 2010-01-27 04:31:52 +01:00
Lennart Poettering 9164977dc6 properly terminate strings with NUL byte 2010-01-27 02:15:54 +01:00
Lennart Poettering 44d8db9e5a various cleanups 2010-01-26 07:02:51 +01:00
Lennart Poettering 034c6ed7da first attempt at proper service/socket logic 2010-01-26 04:18:44 +01:00
Lennart Poettering 5cb5a6ffc3 first attempt in implementinging execution logic 2010-01-23 01:52:57 +01:00