commit | 91f88af17940757b049e87d36a87f6d9c4235420 | [log] [tgz] |
---|---|---|
author | Han Pingtian <hanpt@linux.vnet.ibm.com> | Wed Feb 24 18:19:14 2016 +0800 |
committer | Jan Stancek <jstancek@redhat.com> | Thu Feb 25 08:44:19 2016 +0100 |
tree | c5c4e1ca08d362dbbbe639374e61162eb0957017 | |
parent | 537f21d7bb0be0140ae3f60a639c62840756c509 [diff] |
mem/oom: call WEXITSTATUS() only if WIFEXITED() returned true Only when WIFEXITED() returned true that WEXITSTATUS() can return a meanful result. So we should check WIFEXITED() first. Signed-off-by: Han Pingtian <hanpt@linux.vnet.ibm.com> Reviewed-by: Jan Stancek <jstancek@redhat.com>