Fork 0

Second control-C will terminate

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@716 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2008-02-20 16:49:03 +00:00
parent 9f8b442d33
commit 3313c6f1e7
1 changed files with 6 additions and 0 deletions

View File

@ -325,10 +325,16 @@ int load_file(const char *filename)
void sighandler(int signo)
sigset_t set;
char command[80];
int i;
int j;
sigaddset(&set, SIGINT);
sigprocmask(SIG_UNBLOCK, &set, NULL);
signal(SIGINT, SIG_DFL);
printf("AF:%04X HL:%04X DE:%04X BC:%04X PC:%04X SP:%04X IX:%04X IY:%04X I:%02X\n",
gR.AF.W, gR.HL.W, gR.DE.W, gR.BC.W, gR.PC.W, gR.SP.W, gR.IX.W, gR.IY.W, gR.I);