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