On Wed, May 04, 2016 at 09:01:35PM +0200, Stefan Völkel wrote:
> I can reproduce the problem inside a chroot without /dev/pts mounted. Once I
> mount /dev/pts the error is gone.
>
> I'd say lets go with the patch.
Thanks. I've applied the patch and released dtach version 0.9.
--
Ned T. Crigler
On Thu, 17 Dec 2015 16:18:17 -0800 "Ned T. Crigler"
wrote:
Something like the following could be an improvement to the error
message, though I can't think of a portable way to determine if forkpty
is looking for /dev/pts and a devpts filesystem, so that a hint
Something like the following could be an improvement to the error
message, though I can't think of a portable way to determine if forkpty
is looking for /dev/pts and a devpts filesystem, so that a hint could
also be added to the error message.
Did mounting devpts on /dev/pts fix the problem?
---
Hi,
please take a look at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804944
and keep
804944-forwar...@bugs.debian.org
on CC to record your messages in the BTS.
Stefan
Stefan writes:
> Can you strace detach to see where it looks for ptys ?
Sorry, I missed this message.
Here is the output from strace -f
execve("/usr/bin/dtach", ["dtach", "-A", "/tmp/foo", "bash"], [/* 21 vars */])
= 0
brk(0) = 0x19793000
Can you strace detach to see where it looks for ptys ?
Comparing your strace:
[pid 28825] openat(AT_FDCWD, "/dev/ptmx", O_RDWR) = 4
[pid 28825] statfs("/dev/pts", {f_type="TMPFS_MAGIC", f_bsize=4096,
f_blocks=2560, f_bfree=2560,
f_bavail=2560, f_files=2063331, f_ffree=2063053, f_fsid={0, 0}, f_namelen=255,
f_frsize=4096}) = 0
[pid 28825]
Stefan writes:
>
> i am guessing the difference hides in forkpty. could you
>
> cd /tmp
> apt-get source dtach
> cd dtach-0.8
> ./configure
>
> and attach config.h?
>
Here it is. This is run inside the unstable chroot.
/* config.h. Generated from
Package: dtach
Version: 0.8-2.1
Severity: important
The only arm64 box I have access to is asachi.debian.org, but there
dtach seems not to work at all. Here notmuch is an existing schroot
session with dtach installed in it.
bremner@asachi ~ % schroot -c notmuch -r
bremner@asachi ~ % dtach -A
9 matches
Mail list logo