diff options
-rw-r--r-- | miscutils/microcom.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index 3c573eaa9..5219335a6 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c | |||
@@ -81,10 +81,7 @@ int microcom_main(int argc, char **argv) | |||
81 | // %4d to make concurrent mgetty (if any) happy. | 81 | // %4d to make concurrent mgetty (if any) happy. |
82 | // Mgetty treats 4-bytes lock files as binary, | 82 | // Mgetty treats 4-bytes lock files as binary, |
83 | // not text, PID. Making 5+ char file. Brrr... | 83 | // not text, PID. Making 5+ char file. Brrr... |
84 | char *s = xasprintf("%4d\n", getpid()); | 84 | fdprintf(sfd, "%4d\n", getpid()); |
85 | write(sfd, s, strlen(s)); | ||
86 | if (ENABLE_FEATURE_CLEAN_UP) | ||
87 | free(s); | ||
88 | close(sfd); | 85 | close(sfd); |
89 | } | 86 | } |
90 | 87 | ||