Commit f4d2735d authored by desiredeveloper's avatar desiredeveloper

correction in bg process

parent 1e0b1296
...@@ -124,7 +124,7 @@ void handler(int sig) ...@@ -124,7 +124,7 @@ void handler(int sig)
signal(SIGCHLD, NULL); signal(SIGCHLD, NULL);
getcwd(temp, 150); getcwd(temp, 150);
sprintf(buffer, "%s:$ ", temp); sprintf(buffer, "%s:$ ", temp);
write(1, buffer, 50); write(1, buffer, strlen(temp)+3);
free(temp); free(temp);
free(buffer); free(buffer);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment