diff options
author | Kenny Root <kroot@google.com> | 2014-08-25 17:16:00 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-08-25 17:16:00 +0000 |
commit | cf2b944df6d744d279a434ec280f9bd8cef03a5b (patch) | |
tree | 7587d5fe5e2e585e1cc8df06bcf46a45fdfad274 /init | |
parent | b48c46bcc2986ccb0a2bcac5549285537d8d9d1a (diff) | |
parent | 5a1d5a8c79d0148291700cc5773a1519f2c6d8eb (diff) | |
download | system_core-cf2b944df6d744d279a434ec280f9bd8cef03a5b.zip system_core-cf2b944df6d744d279a434ec280f9bd8cef03a5b.tar.gz system_core-cf2b944df6d744d279a434ec280f9bd8cef03a5b.tar.bz2 |
am 5a1d5a8c: Merge "ueventd: call _exit for safety"
* commit '5a1d5a8c79d0148291700cc5773a1519f2c6d8eb':
ueventd: call _exit for safety
Diffstat (limited to 'init')
-rw-r--r-- | init/devices.c | 4 |
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)); } } |