1/** 2 * \file 3 * \brief Session handling API for terminal client library. 4 */ 5 6/* 7 * Copyright (c) 2012, ETH Zurich. 8 * All rights reserved. 9 * 10 * This file is distributed under the terms in the attached LICENSE file. 11 * If you do not find this file, copies can be found by writing to: 12 * ETH Zurich D-INFK, CAB F.78, Universitaetstr. 6, CH-8092 Zurich, 13 * Attn: Systems Group. 14 */ 15 16#include <barrelfish/barrelfish.h> 17#include <term/client/session.h> 18 19/** 20 * \brief Detach a domain from a session. 21 * 22 * \return SYS_ERR_OK if successful 23 * TERM_ERR_NOT_PART_OF_SESSION if domain is not part of a session 24 */ 25errval_t daemonize(void) 26{ 27 errval_t err; 28 29 err = cap_delete(cap_sessionid); 30 if (err_is_fail(err)) { 31 return err_push(err, TERM_ERR_NOT_PART_OF_SESSION); 32 } 33 34 return SYS_ERR_OK; 35} 36