Figure 831 shows the denition of signal which is

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: (*buf == ’ ’)) /* ignore spaces */ buf++; } argv[argc] = NULL; if (argc == 0) return 1; /* ignore blank line */ /* should the job run in the background? */ if ((bg = (*argv[argc-1] == ’&’)) != 0) argv[--argc] = NULL; return bg; } code/ecf/shellex.c Figure 8.22: parseline: parses a line of input for the shell. 422 CHAPTER 8. EXCEPTIONAL CONTROL FLOW Number 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 Name SIGHUP SIGINT SIGQUIT SIGILL SIGTRAP SIGABRT SIGBUS SIGFPE SIGKILL SIGUSR1 SIGSEGV SIGUSR2 SIGPIPE SIGALRM SIGTERM SIGSTKFLT SIGCHLD SIGCONT SIGSTOP SIGTSTP SIGTTIN SIGTTOU SIGURG SIGXCPU SIGXFSZ SIGVTALRM SIGPROF SIGWINCH SIGIO SIGPWR Default action terminate terminate terminate terminate terminate and dump core terminate and dump core terminate terminate and dump core terminate* terminate terminate and dump core terminate terminate terminate terminate terminate ignore ignore stop until next SIGCONT* stop until next SIGCONT stop until next SIGCONT stop until next SIGCONT ignore terminate terminate terminate terminate ignore terminate terminate C...
View Full Document

This note was uploaded on 09/02/2010 for the course ELECTRICAL 360 taught by Professor Schultz during the Spring '10 term at BYU.

Ask a homework question - tutors are online