simple-init

A set of init binaries for linux
git clone git://depsterr.com/git/simple-init
Log | Files | Refs | README | LICENSE

util.h (608B)


      1 /* Waits for children to exit. If children exit unsuccessfully it
      2    drops the user into an emergency shell */
      3 void wait_for_children();
      4 
      5 /* Runs the given argv as a new process and returns the new
      6    process's pid */
      7 int spawn_process(char** argv);
      8 
      9 /* Runs the given argv as a new process and restarts the new
     10    process as soon as it terminates. */
     11 void respawn_process(char** argv);
     12 
     13 /* mkdir -p */
     14 void make_path(char* path);
     15 
     16 /* Logs message to user and kmsg/dmesg */
     17 void log_message (char* msg);
     18 
     19 /* save a random seed */
     20 void save_random_seed();
     21 
     22 /* load the random seed */
     23 void load_random_seed();