Differences between version 7 and previous revision of JobControl.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 7 | Last edited on Thursday, August 16, 2007 2:54:13 pm | by BenStaz | Revert |
Older page: | version 6 | Last edited on Tuesday, August 14, 2007 11:47:03 am | by BenStaz | Revert |
@@ -39,12 +39,13 @@
*kill %ping
*kill %?google
*fg ping
-*bg ?google.co.nz
+*bg ?goo
These will work as long as you don't supply an ambiguous job_spec.
Notice that, only kill requires the ''%'' so that it knows we are providing it with a JOB_SPEC rather than a process id.
+
!!How this works
Internally each command line (job) gets it's own ProcessGroup assigned to it by the shell when it creates the job using [setsid(2)]. While the command is running in the foreground it recieves any signals from the tty layer (such as [SIGTSTP], [SIGINT], [SIGQUIT], [SIGHUP] etc).