summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-03 13:35:11 +0000
committerpeter <peter@FreeBSD.org>1996-09-03 13:35:11 +0000
commit0692a293b61a792c8d1512d756cedb72e9e3aa07 (patch)
tree0699eb7382fa699dc336b4036009b7c6fa754bd8 /bin/sh/jobs.c
parent122fd3e75ae6b15ec0fc3b93cb72d3222b3e6a30 (diff)
downloadFreeBSD-src-0692a293b61a792c8d1512d756cedb72e9e3aa07.zip
FreeBSD-src-0692a293b61a792c8d1512d756cedb72e9e3aa07.tar.gz
Misc cleanups and fixes from Bruce:
- don't put \n on error() calls, error adds it already. - don't prepend "ulimit" on error() calls in miscbltin.c. - getopt typo on ulimit -p -> -u conversion - get/setrlimit() calls were not being error checked ulimit formatting cleanup from me, use same wording as bash on Bruce's suggestion. Add ulimit arg to output on Joerg's suggestion.
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r--bin/sh/jobs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index 65dea1d..005e2fd 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: jobs.c,v 1.4 1995/09/21 13:24:20 bde Exp $
+ * $Id: jobs.c,v 1.5 1996/09/01 10:20:24 peter Exp $
*/
#ifndef lint
@@ -583,7 +583,7 @@ forkshell(jp, n, mode)
if (mode == FORK_FG) {
/*** this causes superfluous TIOCSPGRPS ***/
if (ioctl(2, TIOCSPGRP, (char *)&pgrp) < 0)
- error("TIOCSPGRP failed, errno=%d\n", errno);
+ error("TIOCSPGRP failed, errno=%d", errno);
}
setsignal(SIGTSTP);
setsignal(SIGTTOU);
@@ -677,7 +677,7 @@ waitforjob(jp)
#if JOBS
if (jp->jobctl) {
if (ioctl(2, TIOCSPGRP, (char *)&mypgrp) < 0)
- error("TIOCSPGRP failed, errno=%d\n", errno);
+ error("TIOCSPGRP failed, errno=%d", errno);
}
if (jp->state == JOBSTOPPED)
curjob = jp - jobtab + 1;
OpenPOWER on IntegriCloud