~charles/cdaniels.net

51de4086b87f101fd85268f6c95c841f97f5a72f — Charles Daniels 19 days ago 6d8bc25 master
fix escape codes

(thanks Josh!)
1 files changed, 4 insertions(+), 4 deletions(-)

M src/sigusr.md
M src/sigusr.md => src/sigusr.md +4 -4
@@ 69,7 69,7 @@ void print_time(void) {
	 /* generate a timestamp string, and remove the trailing newline */
	 char* ts;
	asprintf(&ts, "%s", asctime(l));
	ts[strlen(ts)-1] = '\0'; 
	ts[strlen(ts)-1] = '\\0';

	/* display the timestamp */
	printf("%s", ts);


@@ 172,7 172,7 @@ void print_time(void) {
	/* generate a timestamp string, and remove the trailing newline */
	char* ts;
	asprintf(&ts, "%s", asctime(l));
	ts[strlen(ts)-1] = '\0'; 
	ts[strlen(ts)-1] = '\\0';

	/* display the timestamp */
	printf("%s", ts);


@@ 199,7 199,7 @@ int main(void) {
	/* wait forever, to give us time to send the signal */
	printf("Beginning wait at ");
	print_time();
	printf("\n");
	printf("\\n");

	while(1) {



@@ 209,7 209,7 @@ int main(void) {
		if (flag_sigusr1 != 0) {
			printf("Caught signal SIGUSR1 at: ");
			print_time();
			printf("\n");
			printf("\\n");
			flag_sigusr1 = 0;
		}
	}