[openbnc-cvs] openbnc/src openbnc.c,1.8,1.9
Status: Beta
Brought to you by:
andrereis
From: Mateusz K. <sh...@us...> - 2004-07-06 19:42:42
|
Update of /cvsroot/openbnc/openbnc/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15594/openbnc/src Modified Files: openbnc.c Log Message: - Little change with --pid-file command. ( fixed problem if pidfile == NULL ) Index: openbnc.c =================================================================== RCS file: /cvsroot/openbnc/openbnc/src/openbnc.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- openbnc.c 6 Jul 2004 19:37:12 -0000 1.8 +++ openbnc.c 6 Jul 2004 19:42:29 -0000 1.9 @@ -427,10 +427,11 @@ /* creating background */ /* UGLY! */ - if ( t_pid == NULL ) { - pidfile = fopen(lngtxt(1003),"w"); - } else { + if ( strlen(t_pid) > 0 ) { pidfile = fopen(t_pid,"w"); + } else { + + pidfile = fopen(lngtxt(1003),"w"); } if(pidfile==NULL) |