core: no need to use unlink_noerrno()

This commit is contained in:
Lennart Poettering
2016-02-01 22:18:16 +01:00
parent 36c16a7cdd
commit fabab19068
+1 -1
View File
@@ -1448,7 +1448,7 @@ static void service_enter_dead(Service *s, ServiceResult f, bool allow_restart)
* out-of-date, and some software might be confused by it, so
* let's remove it. */
if (s->pid_file)
unlink_noerrno(s->pid_file);
(void) unlink(s->pid_file);
return;