diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-06-19 00:10:00 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2008-06-19 00:10:00 +0200 |
| commit | a54366fd435e11ef3d594bcf3419df400725dabe (patch) | |
| tree | 2a4378e78f5b0a6d318282e11b8e1e58e9a39c15 /libgtk_kylix/GTKForms.pas | |
| parent | 5a7f575133656f20cf64ee591818a5178a002788 (diff) | |
| download | tuxcmd-a54366fd435e11ef3d594bcf3419df400725dabe.tar.xz | |
Fix crash while executing invalid command
Diffstat (limited to 'libgtk_kylix/GTKForms.pas')
| -rw-r--r-- | libgtk_kylix/GTKForms.pas | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libgtk_kylix/GTKForms.pas b/libgtk_kylix/GTKForms.pas index ad755b7..db6b445 100644 --- a/libgtk_kylix/GTKForms.pas +++ b/libgtk_kylix/GTKForms.pas @@ -675,6 +675,8 @@ begin CheckSynchronize; } end; +procedure _exit(status: longint); cdecl; external 'libc.so.6' name '_exit'; + procedure TGTKApplication.Run; begin repeat @@ -686,7 +688,7 @@ begin on E : Exception do if E is EControlC then begin WriteLn('*** Exception: ', E.Message); - Halt(1); + _exit(1); Exit; end else HandleException(E); end; |
