Corrected and optimized usage of fork and waitpid. 98/136898/4
authorNishant Chaprana <n.chaprana@samsung.com>
Mon, 3 Jul 2017 10:36:06 +0000 (16:06 +0530)
committerNishant Chaprana <n.chaprana@samsung.com>
Mon, 3 Jul 2017 10:43:38 +0000 (16:13 +0530)
commitd662fe34a1c0a678ac4dd1e83f0d9361f539744d
treeebef9152f6df4d8798107aa5fa2d2c79bfe12fa1
parentdbba5d72cbf60aa30b9f54e3ef558a89206d9f41
Corrected and optimized usage of fork and waitpid.

The patch fixes below things:-
1. Do not call fork when arguments not present.
2. Do not call waitpid when fork returned pid as -1 from fork.
3. Corrected wrong english usage in function name by changing name
   of is_rule_exists => is_rule_present.

Change-Id: Ic42233a846df91cc1b7871a52b830fd59433a970
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
packaging/stc-manager.spec
src/helper/helper-nfacct-rule.c