/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/plymouth.c

  • Committer: Teddy Hogeborn
  • Date: 2017-09-03 09:00:31 UTC
  • Revision ID: teddy@recompile.se-20170903090031-zhxw13lca97zuysr
Plymouth plugin bug fix: Actually try the old PID file location

* plugins.d/plymouth.c (get_pid): Try both plymouth_pid and
  plymouth_old_pid, not just plymouth_pid twice.

Show diffs side-by-side

added added

removed removed

Lines of Context:
282
282
  }
283
283
  /* Try the old pid file location */
284
284
  if(proc_id == 0){
285
 
    pidfile = fopen(plymouth_pid, "r");
 
285
    pidfile = fopen(plymouth_old_pid, "r");
286
286
    if(pidfile != NULL){
287
287
      ret = fscanf(pidfile, "%" SCNuMAX, &proc_id);
288
288
      if(ret != 1){