XINU
Functions
exit.c File Reference

現在実行中のプロセスを終了させる。 More...

#include <xinu.h>
Include dependency graph for exit.c:

Go to the source code of this file.

Functions

void exit (void)
 現在実行中のプロセスを終了させる。 More...
 

Detailed Description

現在実行中のプロセスを終了させる。

Definition in file exit.c.

Function Documentation

◆ exit()

void exit ( void  )

現在実行中のプロセスを終了させる。

Definition at line 11 of file exit.c.

References getpid(), and kill().

Referenced by addton(), devisid(), devonid(), getattrid(), if(), main(), newdev(), and newtype().

12 {
13  kill(getpid()); /* Kill the current process */
14 }
syscall kill(pid32)
指定のプロセスを終了させ、システムから終了させたプロセス情報を取り除く。
Definition: kill.c:31
pid32 getpid(void)
現在実行中のプロセスIDを返す。
Definition: getpid.c:11
Here is the call graph for this function:
Here is the caller graph for this function: