diff options
Diffstat (limited to 'src/w32.c')
| -rw-r--r-- | src/w32.c | 20 |
1 files changed, 20 insertions, 0 deletions
| @@ -9473,6 +9473,26 @@ serial_configure (struct Lisp_Process *p, Lisp_Object contact) | |||
| 9473 | pset_childp (p, childp2); | 9473 | pset_childp (p, childp2); |
| 9474 | } | 9474 | } |
| 9475 | 9475 | ||
| 9476 | /* For make-pipe-process */ | ||
| 9477 | void | ||
| 9478 | register_aux_fd (int infd) | ||
| 9479 | { | ||
| 9480 | child_process *cp; | ||
| 9481 | |||
| 9482 | cp = new_child (); | ||
| 9483 | if (!cp) | ||
| 9484 | error ("Could not create child process"); | ||
| 9485 | cp->fd = infd; | ||
| 9486 | cp->status = STATUS_READ_ACKNOWLEDGED; | ||
| 9487 | |||
| 9488 | if (fd_info[ infd ].cp != NULL) | ||
| 9489 | { | ||
| 9490 | error ("fd_info[fd = %d] is already in use", infd); | ||
| 9491 | } | ||
| 9492 | fd_info[ infd ].cp = cp; | ||
| 9493 | fd_info[ infd ].hnd = (HANDLE) _get_osfhandle (infd); | ||
| 9494 | } | ||
| 9495 | |||
| 9476 | #ifdef HAVE_GNUTLS | 9496 | #ifdef HAVE_GNUTLS |
| 9477 | 9497 | ||
| 9478 | ssize_t | 9498 | ssize_t |