/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to plugins.d/splashy.c

  • Committer: Teddy Hogeborn
  • Date: 2008-09-23 18:46:17 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080923184617-r2rd8r7o2jvgz5ey
* Makefile (PLUGINS, uninstall-client,
            install-client-nokey): Added "plugins.d/splashy".

* plugin-runner.c: Change in comments.

* plugins.d/splashy: Removed; replaced by "splashy.c".
* plugins.d/splashy.c: New.

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
      char exe_target[sizeof(splashy_name)];
88
88
      ssize_t sret = readlink(exe_link, exe_target,
89
89
                              sizeof(exe_target));
90
 
      free(exe_link);
91
90
      if((sret == ((ssize_t)sizeof(exe_target)-1))
92
91
         and (memcmp(splashy_name, exe_target,
93
92
                     sizeof(exe_target)-1) == 0)){
196
195
  if(interrupted_by_signal){
197
196
    kill(splashy_command_pid, SIGTERM);
198
197
  }
199
 
  
 
198
 
200
199
  pid_t new_splashy_pid = fork();
201
200
  if(new_splashy_pid == 0){
202
 
    /* Child; will become new splashy process */
203
201
    while(kill(splashy_pid, 0)){
204
202
      sleep(2);
205
203
      kill(splashy_pid, SIGKILL);