635,6 → 635,21 |
|
if (method == IPC_M_PHONE_HUNGUP) { |
klog_printf("kbox: handle hangup message\n"); |
|
/* Was it our debugger, who hung up? */ |
if (call->sender == TASK->debugger) { |
/* Terminate debugging session (if any) */ |
klog_printf("kbox: terminate debug session\n"); |
ipl = interrupts_disable(); |
spinlock_lock(&TASK->lock); |
udebug_task_cleanup(TASK); |
spinlock_unlock(&TASK->lock); |
interrupts_restore(ipl); |
} else { |
klog_printf("kbox: was not debugger\n"); |
} |
|
klog_printf("kbox: continue with hangup message\n"); |
IPC_SET_RETVAL(call->data, 0); |
ipc_answer(&TASK->kernel_box, call); |
|