src/rc/rc: do not try to start services if fork fails
This commit is contained in:
		| @@ -683,6 +683,8 @@ do_start_services(const RC_STRINGLIST *start_services, bool parallel) | ||||
| 		} | ||||
|  | ||||
| 		pid = service_start(service->value); | ||||
| 		if (pid == -1) | ||||
| 			break; | ||||
| 		/* Remember the pid if we're running in parallel */ | ||||
| 		if (pid > 0) { | ||||
| 			add_pid(pid); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user