summaryrefslogtreecommitdiff
path: root/extension/fork.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2012-04-01 17:07:45 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2012-04-01 17:07:45 -0400
commit3438b2129cd933e430349a6bd66a1933071c92c2 (patch)
tree13846c11f27fd037e4e3025cfbd9601c4ba8f975 /extension/fork.c
parent4d26f7436c0acf8617c4736f110f06e2f4531bbd (diff)
downloadgawk-3438b2129cd933e430349a6bd66a1933071c92c2.tar.gz
Update ERRNO API.
Diffstat (limited to 'extension/fork.c')
-rw-r--r--extension/fork.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/fork.c b/extension/fork.c
index 88353879..8b8558e6 100644
--- a/extension/fork.c
+++ b/extension/fork.c
@@ -44,7 +44,7 @@ do_fork(int nargs)
ret = fork();
if (ret < 0)
- update_ERRNO();
+ update_ERRNO_int(errno);
else if (ret == 0) {
/* update PROCINFO in the child */
@@ -83,7 +83,7 @@ do_waitpid(int nargs)
options = WNOHANG|WUNTRACED;
ret = waitpid(pid, NULL, options);
if (ret < 0)
- update_ERRNO();
+ update_ERRNO_int(errno);
} else if (do_lint)
lintwarn("wait: called with no arguments");