parsing commandline option -p port
open, bind and listen on port
main loop, accepting connections and forking
fixed \0 in sprintf and removed bashism