summaryrefslogtreecommitdiff
path: root/extension/fork.c
diff options
context:
space:
mode:
authorAndrew J. Schorr <aschorr@telemetry-investments.com>2012-04-01 17:07:56 -0400
committerAndrew J. Schorr <aschorr@telemetry-investments.com>2012-04-01 17:07:56 -0400
commit920b87dfab2e0504c8a1eb26eb6f130bcb748218 (patch)
tree5f2bea9eff1decc2e2d51b642d2d6cf444de071a /extension/fork.c
parentca6df261b71a738b4f0d0719f79cacee008a16c5 (diff)
downloadgawk-920b87dfab2e0504c8a1eb26eb6f130bcb748218.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");