Skip to contentSkip to conversation

Add end of test message

PATCH In review G 3 2 participants 2 messages Apr 25, 2017

lore
Share & tools
lore

G 3

author
#0 lore raw

PATCH 8/9 Add end of test message

Print the message "End of test" on the risu host end.

---
 risu.c | 1 +
 1 file changed, 1 insertion(+)
risu.c +1 -0
index ed5b605..e7cbd57 100644
@@ -63,6 +63,7 @@ void apprentice_sigill(int sig, siginfo_t *si, void *uc)
          return;
       case 1:
          /* end of test */
+         printf("End of test\n");
          exit(0);
       default:
          /* mismatch */
Signature · 1 line
2.10.2
#1 lore raw
Quoted 12 lines · On 25 April 2017 at 04:24, G 3 <[email protected]> wrote:

Print the message "End of test" on the risu host end.

---
 risu.c | 1 +
 1 file changed, 1 insertion(+)
risu.c +0 -0
index ed5b605..e7cbd57 100644

risu.c void apprentice_sigill(int sig, siginfo_t *si, void *uc) · line 69

Quoted 7 lines
risu.c +1 -0
@@ -63,6 +63,7 @@ void apprentice_sigill(int sig, siginfo_t *si, void *uc)
          return;
       case 1:
          /* end of test */
+         printf("End of test\n");
          exit(0);
       default:
          /* mismatch */

This code is a signal handler, you can't use printf() here.

thanks
-- PMM