summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2014-08-25 18:03:27 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-25 18:03:27 +0000
commitc6c8b563e60adf94d5576567245ee4d30dabb137 (patch)
treef89b52028691732f9b846a6fa08e7ca5a4f2c481 /init
parenta024c2e770f91407b61f1d5e27a2b14ffaeaee6f (diff)
parentcf2b944df6d744d279a434ec280f9bd8cef03a5b (diff)
downloadsystem_core-c6c8b563e60adf94d5576567245ee4d30dabb137.zip
system_core-c6c8b563e60adf94d5576567245ee4d30dabb137.tar.gz
system_core-c6c8b563e60adf94d5576567245ee4d30dabb137.tar.bz2
am cf2b944d: am 5a1d5a8c: Merge "ueventd: call _exit for safety"
* commit 'cf2b944df6d744d279a434ec280f9bd8cef03a5b': ueventd: call _exit for safety
Diffstat (limited to 'init')
-rw-r--r--init/devices.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init/devices.c b/init/devices.c
index 1012fee..2fa5c22 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));
}
}