summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2014-08-25 17:05:36 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-08-25 17:05:37 +0000
commit5a1d5a8c79d0148291700cc5773a1519f2c6d8eb (patch)
tree80a0fd45cab2534763911692b7c58d58f3b41050
parent3cebf9f8c37262ba8c1ec8fcaa7083a6f8d82b77 (diff)
parent17baff480a7be5c07be629ada4fe940bf394ff31 (diff)
downloadsystem_core-5a1d5a8c79d0148291700cc5773a1519f2c6d8eb.zip
system_core-5a1d5a8c79d0148291700cc5773a1519f2c6d8eb.tar.gz
system_core-5a1d5a8c79d0148291700cc5773a1519f2c6d8eb.tar.bz2
Merge "ueventd: call _exit for safety"
-rw-r--r--init/devices.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c
index e27c311..8b00bf2 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -938,7 +938,9 @@ static void handle_firmware_event(struct uevent *uevent)
pid = fork();
if (!pid) {
process_firmware_event(uevent);
- exit(EXIT_SUCCESS);
+ _exit(EXIT_SUCCESS);
+ } else if (pid < 0) {
+ log_event_print("could not fork to process firmware event: %s\n", strerror(errno));
}
}