X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprocess.c;h=4eb1cd84cbc60880e3cbcf35d8f9d3e911bc77ed;hp=a5abc9364a559b5fee5bb19ed1c264765967da86;hb=0b5e6cf04ec0c7e3c54c74a54a32b30e6e3c1f83;hpb=e3220cacb5bc79fc56167e61b7a342f88a33a479 diff --git a/src/process.c b/src/process.c index a5abc936..4eb1cd84 100644 --- a/src/process.c +++ b/src/process.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: process.c,v 1.1.2.76 2003/10/06 16:13:08 guus Exp $ + $Id: process.c,v 1.1.2.77 2003/11/27 23:24:59 guus Exp $ */ #include "system.h" @@ -257,8 +257,10 @@ static bool write_pidfile(void) } /* if it's locked, write-protected, or whatever */ - if(!write_pid(pidfilename)) + if(!write_pid(pidfilename)) { + fprintf(stderr, _("Could write pid file %s: %s\n"), pidfilename, strerror(errno)); return false; + } return true; } @@ -335,8 +337,10 @@ bool detach(void) /* Now UPDATE the pid in the pidfile, because we changed it... */ - if(!write_pid(pidfilename)) + if(!write_pid(pidfilename)) { + fprintf(stderr, _("Could not write pidfile %s: %s\n"), pidfilename, strerror(errno)); return false; + } #else if(!statushandle) exit(install_service());