jobs.c (199629) | jobs.c (200998) |
---|---|
1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Kenneth Almquist. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 22 unchanged lines hidden (view full) --- 31 */ 32 33#ifndef lint 34#if 0 35static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; 36#endif 37#endif /* not lint */ 38#include <sys/cdefs.h> |
39__FBSDID("$FreeBSD: head/bin/sh/jobs.c 199629 2009-11-21 14:28:32Z jilles $"); | 39__FBSDID("$FreeBSD: head/bin/sh/jobs.c 200998 2009-12-25 20:21:35Z jilles $"); |
40 41#include <fcntl.h> 42#include <signal.h> 43#include <errno.h> 44#include <paths.h> 45#include <unistd.h> 46#include <stdlib.h> 47#include <sys/param.h> --- 704 unchanged lines hidden (view full) --- 752 if (pid == 0) { 753 struct job *p; 754 int wasroot; 755 int i; 756 757 TRACE(("Child shell %d\n", (int)getpid())); 758 wasroot = rootshell; 759 rootshell = 0; | 40 41#include <fcntl.h> 42#include <signal.h> 43#include <errno.h> 44#include <paths.h> 45#include <unistd.h> 46#include <stdlib.h> 47#include <sys/param.h> --- 704 unchanged lines hidden (view full) --- 752 if (pid == 0) { 753 struct job *p; 754 int wasroot; 755 int i; 756 757 TRACE(("Child shell %d\n", (int)getpid())); 758 wasroot = rootshell; 759 rootshell = 0; |
760 handler = &main_handler; |
|
760 closescript(); 761 INTON; 762 clear_traps(); 763#if JOBS 764 jobctl = 0; /* do job control only in root shell */ 765 if (wasroot && mode != FORK_NOJOB && mflag) { 766 if (jp == NULL || jp->nprocs == 0) 767 pgrp = getpid(); --- 482 unchanged lines hidden --- | 761 closescript(); 762 INTON; 763 clear_traps(); 764#if JOBS 765 jobctl = 0; /* do job control only in root shell */ 766 if (wasroot && mode != FORK_NOJOB && mflag) { 767 if (jp == NULL || jp->nprocs == 0) 768 pgrp = getpid(); --- 482 unchanged lines hidden --- |