implement a startup monitor, move code to src/startup.c

This commit is contained in:
Michael Stapelberg
2011-10-10 11:36:21 +01:00
parent 198f16ece9
commit f4f4d782bb
6 changed files with 138 additions and 64 deletions

View File

@ -66,18 +66,6 @@ Rect rect_add(Rect a, Rect b);
*/
bool update_if_necessary(uint32_t *destination, const uint32_t new_value);
/**
* Starts the given application by passing it through a shell. We use double
* fork to avoid zombie processes. As the started applications parent exits
* (immediately), the application is reparented to init (process-id 1), which
* correctly handles childs, so we dont have to do it :-).
*
* The shell is determined by looking for the SHELL environment variable. If
* it does not exist, /bin/sh is used.
*
*/
void start_application(const char *command);
/**
* exec()s an i3 utility, for example the config file migration script or
* i3-nagbar. This function first searches $PATH for the given utility named,