mirror of
https://github.com/znc/znc.git
synced 2026-05-09 14:54:53 +02:00
Remove useless spaces inside of braces "( stuff )"
This was generated via the following command:
cat <file> | \
tr "\n" "€"| \
sed -r 's/€[\t ]*\{€/ {€/g; s/\( */(/g; s/ *\)/)/g' | \
tr "€" "\n"
Thanks to SilverLeo for producing this mess :P
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1029 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+7
-8
@@ -313,7 +313,7 @@ bool CFile::ReadLine(CString& sData, const CString & sDelimiter) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if( bEOF && m_sBuffer.size() ) {
|
||||
if (bEOF && m_sBuffer.size()) {
|
||||
sData = m_sBuffer;
|
||||
m_sBuffer.clear();
|
||||
return true;
|
||||
@@ -411,14 +411,13 @@ int CExecSock::popen2(int & iReadFD, int & iWriteFD, const CString & sCommand) {
|
||||
}
|
||||
|
||||
void CExecSock::close2(int iPid, int iReadFD, int iWriteFD) {
|
||||
close( iReadFD );
|
||||
close( iWriteFD );
|
||||
u_int iNow = time( NULL );
|
||||
while( waitpid( iPid, NULL, WNOHANG ) == 0 )
|
||||
{
|
||||
if ( ( time( NULL ) - iNow ) > 5 )
|
||||
close(iReadFD);
|
||||
close(iWriteFD);
|
||||
u_int iNow = time(NULL);
|
||||
while (waitpid(iPid, NULL, WNOHANG) == 0) {
|
||||
if ((time(NULL) - iNow) > 5)
|
||||
break; // giveup
|
||||
usleep( 100 );
|
||||
usleep(100);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user