Changeset 481 for trunk/src/sh_sub.c
- Timestamp:
- Jul 18, 2015, 5:06:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_sub.c
r429 r481 83 83 close (child2parent[0]); 84 84 85 /* fprintf(stderr, "FIXME kill_sub %d\n", (int) sh_child_pid); */86 87 85 /* Let's be rude. */ 88 86 kill(sh_child_pid, SIGKILL); … … 210 208 211 209 sh_child_pid = res; 212 213 /* fprintf(stderr, "FIXME create_sub %d\n", (int) sh_child_pid); */214 210 } 215 211 else … … 252 248 static ssize_t sh_sub_write(int fd, const void *buf, size_t count) 253 249 { 254 c har * mbuf = (char *) buf;250 const char * mbuf = (const char *) buf; 255 251 ssize_t rcount; 256 252 int ttl = 5; /* 0, 1, 9, 81, 729 millisec */ … … 296 292 do { 297 293 298 /* fprintf(stderr, "FIXME wait_com polling..\n"); */299 300 294 do { 301 295 ret = poll(&fds, 1, -1); … … 305 299 { 306 300 ret = sh_sub_read(parent2child[0], &inbuf, sizeof(inbuf)); 307 308 /*309 fprintf(stderr, "FIXME wait_com stat %s (%s)\n",310 inbuf.path, (inbuf.command == SH_COM_LSTAT) ? "lstat" : "stat");311 */312 301 313 302 if (ret == 0) … … 328 317 outbuf.errnum = errno; 329 318 330 /* fprintf(stderr, "FIXME wait_com writing..\n"); */331 332 319 ret = sh_sub_write(child2parent[1], &outbuf, sizeof(outbuf)); 333 320 if (ret < 0) 334 321 { 335 /* fprintf(stderr, "FIXME wait_com return 1\n"); */336 322 return; 337 323 } … … 339 325 else /* sh_sub_read() < 0 */ 340 326 { 341 /* fprintf(stderr, "FIXME wait_com return 2\n"); */342 327 return; 343 328 } 344 329 } 345 346 /* fprintf(stderr, "FIXME wait_com next..\n"); */347 348 330 } while (1 == 1); 349 331 }
Note:
See TracChangeset
for help on using the changeset viewer.