comparison src/if_cscope.c @ 1578:9e0174515abb v7.1.291

updated for version 7.1-291
author vimboss
date Tue, 01 Apr 2008 18:59:07 +0000
parents 0e3e601e66cf
children 82b5078be2dd
comparison
equal deleted inserted replaced
1577:3ee896333e3e 1578:9e0174515abb
2161 { 2161 {
2162 pid = waitpid(csinfo[i].pid, &pstat, WNOHANG); 2162 pid = waitpid(csinfo[i].pid, &pstat, WNOHANG);
2163 waitpid_errno = errno; 2163 waitpid_errno = errno;
2164 if (pid != 0) 2164 if (pid != 0)
2165 break; /* break unless the process is still running */ 2165 break; /* break unless the process is still running */
2166 mch_delay(50, FALSE); /* sleep 50 ms */ 2166 mch_delay(50L, FALSE); /* sleep 50 ms */
2167 } 2167 }
2168 # endif 2168 # endif
2169 /* 2169 /*
2170 * If the cscope process is still running: kill it. 2170 * If the cscope process is still running: kill it.
2171 * Safety check: If the PID would be zero here, the entire X session 2171 * Safety check: If the PID would be zero here, the entire X session
2196 if (kill(csinfo[i].pid, 0) != 0) 2196 if (kill(csinfo[i].pid, 0) != 0)
2197 { 2197 {
2198 alive = FALSE; /* cscope process no longer exists */ 2198 alive = FALSE; /* cscope process no longer exists */
2199 break; 2199 break;
2200 } 2200 }
2201 mch_delay(50, FALSE); /* sleep 50ms */ 2201 mch_delay(50L, FALSE); /* sleep 50ms */
2202 } 2202 }
2203 } 2203 }
2204 if (alive) 2204 if (alive)
2205 # endif 2205 # endif
2206 { 2206 {