X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/fa4bef8080b75d2c8c75169667c7ba1b4a124232..b542dd0bc305096d0771627477406ac8f26cb785:/util.h diff --git a/util.h b/util.h index b5fbd579..f9c5c78f 100644 --- a/util.h +++ b/util.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: util.h,v 1.1 2001/02/03 20:26:37 mdw Exp $ + * $Id: util.h,v 1.2 2001/02/22 09:07:08 mdw Exp $ * * Utilities for the client and the server * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: util.h,v $ + * Revision 1.2 2001/02/22 09:07:08 mdw + * Separate detach-from-terminal code into a separate function. + * * Revision 1.1 2001/02/03 20:26:37 mdw * Initial checkin. * @@ -41,10 +44,20 @@ extern "C" { #endif -/*----- Header files ------------------------------------------------------*/ - /*----- Functions provided ------------------------------------------------*/ +/* --- @u_detach@ --- * + * + * Arguments: --- + * + * Returns: --- + * + * Use: Detaches from the current terminal and ensures it can never + * acquire a new one. Calls @fork@. + */ + +extern void u_detach(void); + /* --- @u_daemon@ --- * * * Arguments: --- @@ -54,7 +67,7 @@ * Use: Becomes a daemon. */ -int u_daemon(void); +extern int u_daemon(void); /*----- That's all, folks -------------------------------------------------*/