about the "panic" module

crux-00011: $SRC/utils/README.panic

* Panic

  "panic" is part of a utility library for writing programs for
  the Crux system.


* The "panic" interface

  #include "utils/panic.h"

  extern void panic (char * msg);

  Write to file descriptor 2 ("standard error output") a message
  indicating that a fatal error has occured.  If MSG is not null,
  it must point to a 0-terminated string.  The contents of the
  string will also be written to descriptor 2.

  Errors while writing are ignored.

  The precise format of output is unspecified but output is
  meant to be read by people.

  This function then aborts the current process by calling the
  "_exit" function found in POSIX and C language standards:
 

	_exit (2);

  This function will not return.



/*

    This file is part of Crux.

    Crux is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Crux is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Crux.  If not, see <http://www.gnu.org/licenses/>.

*/