Changeset 1214 for trunk/src/kash/jobs.c


Ignore:
Timestamp:
Oct 7, 2007, 10:39:58 PM (18 years ago)
Author:
bird
Message:

some more cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/jobs.c

    r1207 r1214  
    3333 */
    3434
    35 #ifdef HAVE_SYS_CDEFS_H
    36 #include <sys/cdefs.h>
    37 #else
    38 #define _PATH_DEVNULL "/dev/null"
    39 #endif
     35#if 0
    4036#ifndef lint
    41 #if 0
    4237static char sccsid[] = "@(#)jobs.c      8.5 (Berkeley) 5/4/95";
    4338#else
    4439__RCSID("$NetBSD: jobs.c,v 1.63 2005/06/01 15:41:19 lukem Exp $");
    45 #endif
    4640#endif /* not lint */
     41#endif
    4742
    4843#include <fcntl.h>
    49 #ifdef __sun__
    50 # define sys_siglist _sys_siglist
    51 #endif
    52 #include <signal.h>
    5344#include <errno.h>
    54 #include <unistd.h>
    5545#include <stdlib.h>
    56 #ifndef __sun__
    57 # include <paths.h>
    58 #endif
    5946#include <sys/types.h>
    60 #include <sys/param.h>
    61 #if defined(BSD) || defined(__sun__)
    62 # include <sys/wait.h>
    63 # include <sys/time.h>
    64 # include <sys/resource.h>
    65 #endif
    66 #include <sys/ioctl.h>
    6747
    6848#include "shell.h"
     
    815795
    816796        TRACE((psh, "forkshell(%%%d, %p, %d) called\n", jp - psh->jobtab, n, mode));
    817         switch ((pid = fork())) {
     797        switch ((pid = sh_fork(psh))) {
    818798        case -1:
    819799                TRACE((psh, "Fork failed, errno=%d\n", errno));
Note: See TracChangeset for help on using the changeset viewer.