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