This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: pty issues (when it changes)
- From: Roland McGrath <roland at redhat dot com>
- To: Shaya Potter <spotter at cs dot columbia dot edu>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Wed, 4 Sep 2002 12:05:40 -0700
- Subject: Re: pty issues (when it changes)
- References: <1031165916.17766.16.camel@zaphod>
You can't expect a restarted application to work right if you've changed
what pty it's talking to, any more than if you'd renamed a file it had open.
Part of the state you are checkpointing includes what the application thought
was going on with all its descriptors and what they referred to. If you change
what pty the application's descriptor refers to, it may think it knows what
the file name of the pty is and now be wrong. You just can't win that way.