Browse Source

syscall printing: add print for return case of fork

This bug has been in there for a long time. Maybe forever.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Ronald G. Minnich 3 years ago
parent
commit
b10aaf731e
1 changed files with 5 additions and 0 deletions
  1. 5 0
      sys/src/9/port/syscallfmt.c

+ 5 - 0
sys/src/9/port/syscallfmt.c

@@ -387,6 +387,11 @@ syscallfmt(uint8_t what, int syscallno, Ar0 *ar0, uint64_t start, uint64_t stop,
 			errstr = up->syserrstr;
 		fmtprint(&fmt, " = %#p", ar0->v);
 		break;
+	case RFORK:
+		if(ar0->v == (void*)-1)
+			errstr = up->syserrstr;
+		fmtprint(&fmt, " = %d", ar0->v);
+		break;
 	case AWAIT:
 		if(ar0->i > 0){
 			fmtuserstring(&fmt, a, " ");