--- a/eoip.c
+++ b/eoip.c
@@ -430,7 +430,7 @@ int main(int argc, char **argv)
 	exit(1);
 
     mfd = fopen(pidfile, "w");
-    fprintf(mfd,"%d", getpid());
+    fprintf(mfd,"%d\n", getpid());
     fclose(mfd);
 
     /* structure of Mikrotik EoIP:
