CPSC 1280 Lecture Notes - Lecture 25: Background Process, Shell Script, Sighup

55 views6 pages

Document Summary

Road map: signals, exit code, subshell, job control. 22 hangup modem connection is broken; restarts a demon terminal interrupt user hits interrupt key quit from terminal - process produce a core dump file. Surest kill can"t be trapped default termination signal used by kill command suspends process - user hits [ctrl-z] child terminates kernel sends signal to parent suspends process background process attempts to read. Sigttou suspends process background process attempts to write. Kill a process: the kill command, internal command (/bin/kill if the shell lacks kill capability, usually with the intention of killing the process, by default sends sigterm (15) signal, usage, $ kill options pid(s) Example: $ kill 105, $ kill -s term 105, kill parent to kill all its children, exception with nohup command, init acquires their parentage. Kill: even though kill is normally used to kill a process, the term is a misnomer.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents