diff options
author | Michael Brown | 2007-06-28 15:53:12 +0200 |
---|---|---|
committer | Michael Brown | 2007-06-28 15:53:12 +0200 |
commit | 6209d20779b48e19213715fecf3bc7014de8c401 (patch) | |
tree | dee50c5d38016026e311e6cec50cdac2207e642e /src/core/job.c | |
parent | Forgot to set initial session state. Now works! (diff) | |
download | ipxe-6209d20779b48e19213715fecf3bc7014de8c401.tar.gz ipxe-6209d20779b48e19213715fecf3bc7014de8c401.tar.xz ipxe-6209d20779b48e19213715fecf3bc7014de8c401.zip |
Added monojob controller in lieu of a full working shell.
Diffstat (limited to 'src/core/job.c')
-rw-r--r-- | src/core/job.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/job.c b/src/core/job.c index 8d768586..00c0e6c4 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -34,6 +34,14 @@ void job_done ( struct job_interface *job, int rc ) { job_put ( dest ); } +void job_kill ( struct job_interface *job ) { + struct job_interface *dest = job_get_dest ( job ); + + dest->op->kill ( dest ); + job_unplug ( job ); + job_put ( dest ); +} + /**************************************************************************** * * Helper methods |