aboutsummaryrefslogtreecommitdiff
path: root/contrib/tcsh/sh.proc.c
diff options
context:
space:
mode:
authorDmitry Chagin <dchagin@FreeBSD.org>2021-05-19 21:12:27 +0000
committerDmitry Chagin <dchagin@FreeBSD.org>2021-05-19 21:12:27 +0000
commit6560ac57ce879857203bc456cdc3849808dc0700 (patch)
tree79dc4d216d70df0bca6e9ccdfa4ba994fc1cb008 /contrib/tcsh/sh.proc.c
parent6190ff6104aed4cd753019325a252c4d66495b5e (diff)
parent174d8b60324d7e8754709f7155e13ca95220b48c (diff)
downloadsrc-6560ac57ce879857203bc456cdc3849808dc0700.tar.gz
src-6560ac57ce879857203bc456cdc3849808dc0700.zip
Diffstat (limited to 'contrib/tcsh/sh.proc.c')
-rw-r--r--contrib/tcsh/sh.proc.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/contrib/tcsh/sh.proc.c b/contrib/tcsh/sh.proc.c
index caf7362a3e77..2d2a61e33ca9 100644
--- a/contrib/tcsh/sh.proc.c
+++ b/contrib/tcsh/sh.proc.c
@@ -233,10 +233,10 @@ loop:
# define HAVEwait3
pid = waitpid(-1, &w,
(setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG));
-# endif /* ODT */
+# endif /* ODT */
# if defined(aiws) || defined(uts)
# define HAVEwait3
- pid = wait3(&w.w_status,
+ pid = wait3(&w.w_status,
(setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), 0);
# endif /* aiws || uts */
# ifndef HAVEwait3
@@ -245,8 +245,8 @@ loop:
/* on Sys V, this may hang. I hope it's not going to be a problem */
pid = wait(&w);
# else /* BSDWAIT */
- /*
- * XXX: for greater than 3 we should use waitpid().
+ /*
+ * XXX: for greater than 3 we should use waitpid().
* but then again, SVR4 falls into the POSIX/BSDJOBS category.
*/
pid = wait(&w.w_status);
@@ -443,7 +443,7 @@ pnote(void)
static void
pfree(struct process *pp)
-{
+{
xfree(pp->p_command);
if (pp->p_cwd && --pp->p_cwd->di_count == 0)
if (pp->p_cwd->di_next == 0)
@@ -568,10 +568,10 @@ pjwait(struct process *pp)
fp->p_reason | META : fp->p_reason;
} while ((fp = fp->p_friends) != pp);
/*
- * Don't report on backquoted jobs, cause it will mess up
+ * Don't report on backquoted jobs, cause it will mess up
* their output.
*/
- if ((reason != 0) && (adrof(STRprintexitvalue)) &&
+ if ((reason != 0) && (adrof(STRprintexitvalue)) &&
(pp->p_flags & PBACKQ) == 0)
xprintf(CGETS(17, 2, "Exit %d\n"), reason);
reason_str = putn((tcsh_number_t)reason);
@@ -734,7 +734,7 @@ morecommand(size_t s)
}
/* GrP
- * unparse - Export padd() functionality
+ * unparse - Export padd() functionality
*/
Char *
unparse(struct command *t)
@@ -1015,7 +1015,7 @@ pprint(struct process *pp, int flag)
if ((pp->p_friends->p_flags & PPOU) && !inpipe && (flag & NAME)) {
inpipe = 1;
pipetail = pp;
- do
+ do
pp = pp->p_friends;
while (pp->p_friends->p_flags & PPOU);
pipehead = pp;
@@ -1028,7 +1028,7 @@ pprint(struct process *pp, int flag)
pcond = (tp != pp || (inpipe && tp == pp));
#else /* !BACKPIPE */
pcond = (tp != pp);
-#endif /* BACKPIPE */
+#endif /* BACKPIPE */
jobflags |= pp->p_flags;
pstatus = (int) (pp->p_flags & PALLSTATES);
@@ -1822,7 +1822,7 @@ pfork(struct command *t, int wanttty)
pgrp = pcurrjob ? pcurrjob->p_jobid : getpid();
pflushall();
pcurrjob = NULL;
-#if !defined(BSDTIMES) && !defined(_SEQUENT_)
+#if !defined(BSDTIMES) && !defined(_SEQUENT_)
timesdone = 0;
#endif /* !defined(BSDTIMES) && !defined(_SEQUENT_) */
child++;
@@ -1896,7 +1896,7 @@ pfork(struct command *t, int wanttty)
pgrp = pcurrjob ? pcurrjob->p_jobid : pid;
if (setpgid(pid, pgrp) == -1 && errno == EPERM) {
pcurrjob = NULL;
- /*
+ /*
* We don't care if this causes an error here;
* then we are already in the right process group
*/
@@ -1965,7 +1965,7 @@ setttypgrp(int pgrp)
struct sigaction old;
/*
- * tcsetpgrp will set SIGTTOU to all the the processes in
+ * tcsetpgrp will set SIGTTOU to all the the processes in
* the background according to POSIX... We ignore this here.
*/
sigaction(SIGTTOU, NULL, &old);
@@ -1984,7 +1984,7 @@ setttypgrp(int pgrp)
* if we don't have vfork(), things can still go in the wrong order
* resulting in the famous 'Stopped (tty output)'. But some systems
* don't permit the setpgid() call, (these are more recent secure
- * systems such as ibm's aix), when they do. Then we'd rather print
+ * systems such as ibm's aix), when they do. Then we'd rather print
* an error message than hang the shell!
* I am open to suggestions how to fix that.
*/