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