summaryrefslogtreecommitdiff
path: root/man2/getrlimit.2
diff options
context:
space:
mode:
Diffstat (limited to 'man2/getrlimit.2')
-rw-r--r--man2/getrlimit.26
1 files changed, 3 insertions, 3 deletions
diff --git a/man2/getrlimit.2 b/man2/getrlimit.2
index 30e6b452d..52f99ab20 100644
--- a/man2/getrlimit.2
+++ b/man2/getrlimit.2
@@ -541,7 +541,7 @@ main(int argc, char *argv[])
"<new\-hard\-limit>]\\n", argv[0]);
exit(EXIT_FAILURE);
}
-
+
pid = atoi(argv[1]); /* PID of target process */
newp = NULL;
@@ -554,14 +554,14 @@ main(int argc, char *argv[])
/* Set CPU time limit of target prcess; retrieve and display
previous limit */
- if (prlimit(pid, RLIMIT_CPU, newp, &old) == \-1)
+ if (prlimit(pid, RLIMIT_CPU, newp, &old) == \-1)
errExit("prlimit\-1");
printf("Previous limits: soft=%lld; hard=%lld\\n",
(long long) old.rlim_cur, (long long) old.rlim_max);
/* Retrieve and display new CPU time limit */
- if (prlimit(pid, RLIMIT_CPU, NULL, &old) == \-1)
+ if (prlimit(pid, RLIMIT_CPU, NULL, &old) == \-1)
errExit("prlimit\-2");
printf("New limits: soft=%lld; hard=%lld\\n",
(long long) old.rlim_cur, (long long) old.rlim_max);