mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
microcom: shrink
This commit is contained in:
parent
32fd76c1d5
commit
cd174d1f31
@ -81,10 +81,7 @@ int microcom_main(int argc, char **argv)
|
|||||||
// %4d to make concurrent mgetty (if any) happy.
|
// %4d to make concurrent mgetty (if any) happy.
|
||||||
// Mgetty treats 4-bytes lock files as binary,
|
// Mgetty treats 4-bytes lock files as binary,
|
||||||
// not text, PID. Making 5+ char file. Brrr...
|
// not text, PID. Making 5+ char file. Brrr...
|
||||||
char *s = xasprintf("%4d\n", getpid());
|
fdprintf(sfd, "%4d\n", getpid());
|
||||||
write(sfd, s, strlen(s));
|
|
||||||
if (ENABLE_FEATURE_CLEAN_UP)
|
|
||||||
free(s);
|
|
||||||
close(sfd);
|
close(sfd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user