SNAS / openbmp

OpenBMP Server Collector
www.openbmp.org
Eclipse Public License 1.0
230 stars 76 forks source link

Write correct PID to PID file #59

Closed vincentbernat closed 6 years ago

vincentbernat commented 6 years ago

At this point of the program, we are in the child process and pid variable is always 0. Therefore, the call to getpid() is needed to get the actual value.