269
269
  FILE *pidfile = fopen(plymouth_pid, "r");
 
270
270
  /* Try the new pid file location */
 
278
278
  /* Try the old pid file location */
 
280
280
    pidfile = fopen(plymouth_pid, "r");
 
289
289
  /* Look for a plymouth process */
 
291
291
    struct dirent **direntries = NULL;
 
292
292
    ret = scandir("/proc", &direntries, is_plymouth, alphasort);
 
294
294
      error_plus(0, errno, "scandir");
 
299
299
        error_plus(0, errno, "sscanf");