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