char indent[16] = { " " }; \
indent[get_parent_count()] = 0; \
fprintf(stderr, "%s%s[%d.%5d] %s:%d %s" \
- fmt, indent, green_color, get_process_count(), \
+ fmt, indent, green_color, get_sibling_count(), \
getpid(), \
__FILE__, __LINE__, normal_color, ##arg); \
} while (0)
char indent[16] = { " " }; \
indent[get_parent_count()] = 0; \
fprintf(stderr, "%s%s[%d.%5d] %s:%d Error %s" \
- fmt, indent, red_color, get_process_count(), \
+ fmt, indent, red_color, get_sibling_count(), \
getpid(), \
__FILE__, __LINE__, normal_color, ##arg); \
} while (0)
int get_child_count(void);
int get_parent_count(void);
-int get_process_count(void);
+int get_sibling_count(void); /* Returns the number of older siblings */
int do_fork(void);
int run(const char *p, char *const argv[]);