Changeset 1214 for trunk/src/kash/jobs.c
- Timestamp:
- Oct 7, 2007, 10:39:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/jobs.c
r1207 r1214 33 33 */ 34 34 35 #ifdef HAVE_SYS_CDEFS_H 36 #include <sys/cdefs.h> 37 #else 38 #define _PATH_DEVNULL "/dev/null" 39 #endif 35 #if 0 40 36 #ifndef lint 41 #if 042 37 static char sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95"; 43 38 #else 44 39 __RCSID("$NetBSD: jobs.c,v 1.63 2005/06/01 15:41:19 lukem Exp $"); 45 #endif46 40 #endif /* not lint */ 41 #endif 47 42 48 43 #include <fcntl.h> 49 #ifdef __sun__50 # define sys_siglist _sys_siglist51 #endif52 #include <signal.h>53 44 #include <errno.h> 54 #include <unistd.h>55 45 #include <stdlib.h> 56 #ifndef __sun__57 # include <paths.h>58 #endif59 46 #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 #endif66 #include <sys/ioctl.h>67 47 68 48 #include "shell.h" … … 815 795 816 796 TRACE((psh, "forkshell(%%%d, %p, %d) called\n", jp - psh->jobtab, n, mode)); 817 switch ((pid = fork())) {797 switch ((pid = sh_fork(psh))) { 818 798 case -1: 819 799 TRACE((psh, "Fork failed, errno=%d\n", errno));
Note:
See TracChangeset
for help on using the changeset viewer.