#20 WritePidFile and DeletePidFile should use helper function

Reed Loden

From http://en.znc.in/wiki/User:Psychon/ToDo, implement #10 -- "WritePidFile and DeletePidFile should use some common code to get the path for the pid file (copy & paste is evil :P) ".


  • Reed Loden

    Reed Loden - 2010-04-23

    v1 patch

  • Psychon

    Psychon - 2010-04-23

    Uhm, not going to commit this.
    Here's a hint: When you call new, it usually makes sense to call delete later on.

    And another hint: Don't code when tired, I usually write stupid bugs when I do that. ;)

  • Psychon

    Psychon - 2010-04-23

    Oh, also it could make sense to make InitPidFile() protected/private since it's not really meant to be used by others. But that's pretty much a matter of taste...

  • Reed Loden

    Reed Loden - 2010-04-24

    v2 patch

  • Psychon

    Psychon - 2010-04-24
    • assigned_to: nobody --> psychon
    • status: open --> closed-fixed
  • Psychon

    Psychon - 2010-04-24

    r1929, thanks.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks