- Timestamp:
- Oct 10, 2007 1:03:09 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/shinstance.c
r1233 r1237 197 197 return -1; 198 198 # else 199 //fprintf(stderr, "kill(%d, %d)\n", pid, signo); 199 200 return kill(pid, signo); 200 201 # endif … … 211 212 return -1; 212 213 # else 214 //fprintf(stderr, "killpg(%d, %d)\n", pgid, signo); 213 215 return killpg(pgid, signo); 214 216 # endif … … 260 262 pid_t sh_waitpid(shinstance *psh, pid_t pid, int *statusp, int flags) 261 263 { 262 #ifdef SH_PURE_STUB_MODE 263 return -1; 264 #elif defined(SH_STUB_MODE) 265 # ifdef _MSC_VER 266 return -1; 267 # else 268 return waitpid(pid, statusp, flags); 264 *statusp = 0; 265 #ifdef SH_PURE_STUB_MODE 266 return -1; 267 #elif defined(SH_STUB_MODE) 268 # ifdef _MSC_VER 269 return -1; 270 # else 271 pid = waitpid(pid, statusp, flags); 272 //fprintf(stderr, "waitpid -> %d *statusp=%d (rc=%d) flags=%#x\n", pid, *statusp, WEXITSTATUS(*statusp), flags); 273 return pid; 269 274 # endif 270 275 #else … … 402 407 return -1; 403 408 # else 404 return setpgid(pid, pgid); 409 int rc; 410 rc = setpgid(pid, pgid); 411 //fprintf(stderr, "setpgid(%d,%d) -> %d\n", pid, pgid, rc); 412 return rc; 405 413 # endif 406 414 #else
Note:
See TracChangeset
for help on using the changeset viewer.