---
name: "exit"
section: "3tk"
platform: "linux"
package: "tk40-dev"
version: "4.0p3-5"
release: "Debian 1.3 (Bo)"
platforms: ["linux"]
url: "https://new.carta.tech/exit/3tk"
---

# exit(3tk)

Exit the process

```

```

## NAME

exit - Exit the process

## SYNOPSIS

**exit** ?*returnCode*?

```

```

## DESCRIPTION

Terminate the process, returning *returnCode* (an integer) to the system as the exit status. If *returnCode* isn't specified then it defaults to 0. This command replaces the Tcl command by the same name. It is identical to Tcl's **exit** command except that before exiting it destroys all the windows managed by the process. This allows various cleanup operations to be performed, such as removing application names from the global registry of applications.

## KEYWORDS

exit, process
