Changeset 5711
Use POSIX waitpid() rather than BSD wait4()
Comitted by:
mjagdis
Date:
Jun 04 2010 * 23:11 (about 1 year ago)
Affected files:
callweaver/trunk/apps/app_visdn_ppp.c (unified diff)
| r5680 | r5711 | |
|---|---|---|
| 170 | 170 | cw_fr_free(f); |
| 171 | 171 | |
| 172 | 172 | int status; |
| 173 | res = wait4(pid, &status, WNOHANG, NULL); | |
| 173 | res = waitpid(pid, &status, WNOHANG); | |
| 174 | 174 | if (res < 0) { |
| 175 | 175 | cw_log(CW_LOG_WARNING, |
| 176 | "wait4 returned %d: %s\n", | |
| 176 | "waitpid returned %d: %s\n", | |
| 177 | 177 | res, strerror(errno)); |
| 178 | 178 | |
| 179 | 179 | break; |
callweaver/trunk/corelib/callweaver.c (unified diff)
| r5707 | r5711 | |
|---|---|---|
| 340 | 340 | pid_t pid; |
| 341 | 341 | int x; |
| 342 | 342 | int res; |
| 343 | struct rusage rusage; | |
| 344 | 343 | int status; |
| 345 | 344 | unsigned int level; |
| 346 | 345 | |
| --- | --- | |
| 378 | 377 | { |
| 379 | 378 | for (;;) |
| 380 | 379 | { |
| 381 | res = wait4(pid, &status, 0, &rusage); | |
| 380 | res = waitpid(pid, &status, 0); | |
| 382 | 381 | if (res > -1) |
| 383 | 382 | { |
| 384 | 383 | res = WIFEXITED(status) ? WEXITSTATUS(status) : -1; |
![Home changeset 5711 [home]](/images/logo.png?1180520111)

RSS Feeds