[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Sending EOF to process as part of comint-simple-send
From: |
Eli Zaretskii |
Subject: |
Re: Sending EOF to process as part of comint-simple-send |
Date: |
Sun, 15 Jan 2023 12:25:49 +0200 |
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: jporterbugs@gmail.com, emacs-devel@gnu.org
> Date: Sun, 15 Jan 2023 11:08:29 +0100
>
> On Jan 15 2023, Eli Zaretskii wrote:
>
> >> From: Andreas Schwab <schwab@linux-m68k.org>
> >> Cc: Jim Porter <jporterbugs@gmail.com>, emacs-devel@gnu.org
> >> Date: Sun, 15 Jan 2023 09:40:09 +0100
> >>
> >> On Jan 15 2023, Eli Zaretskii wrote:
> >>
> >> > Right. This doesn't work for pipes, so I intend to introduce a new
> >> > function that does fsync on the descriptor via which we write to the
> >> > sub-process, and call it there instead of process-send-eof. Does this
> >> > make sense?
> >>
> >> You will probably get EINVAL.
> >
> > And the stuff will not be flushed?
>
> There is nothing to flush.
This is not useful.
I'm considering the following scenario:
emacs -Q
M-: (setq process-connection-type nil) RET
M-x shell RET
od -t x1 RET
1000 C-c C-d
Instead of "C-c C-d" (which in the above scenario closes the
connection to the sub-process) I'm thinking of adding a command to
make sure the "1000" part is sent to 'od' without a newline. Are you
saying that this will happen automatically on Posix systems? Or are
you saying that there's no way to do that when communicating with
sub-processes via pipes? Or are you saying something else?
- Sending EOF to process as part of comint-simple-send, Eli Zaretskii, 2023/01/14
- Re: Sending EOF to process as part of comint-simple-send, Jim Porter, 2023/01/15
- Re: Sending EOF to process as part of comint-simple-send, Eli Zaretskii, 2023/01/15
- Re: Sending EOF to process as part of comint-simple-send, Andreas Schwab, 2023/01/15
- Re: Sending EOF to process as part of comint-simple-send, Eli Zaretskii, 2023/01/15
- Re: Sending EOF to process as part of comint-simple-send, Andreas Schwab, 2023/01/15
- Re: Sending EOF to process as part of comint-simple-send,
Eli Zaretskii <=
- Re: Sending EOF to process as part of comint-simple-send, Andreas Schwab, 2023/01/15
- Re: Sending EOF to process as part of comint-simple-send, Eli Zaretskii, 2023/01/15