Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Script command under NetBSD-current



On Mon, 14 Jun 2021, RVP wrote:

The parent process is reading from the child:
$ gdb -p 2655
Attaching to process 2655
Reading symbols from /usr/bin/script...
(No debugging symbols found in /usr/bin/script)
Reading symbols from /usr/lib/libutil.so.7...
(No debugging symbols found in /usr/lib/libutil.so.7)
Reading symbols from /usr/lib/libc.so.12...
(No debugging symbols found in /usr/lib/libc.so.12)
Reading symbols from /usr/libexec/ld.elf_so...
(No debugging symbols found in /usr/libexec/ld.elf_so)
[Switching to LWP 2655 of process 2655]
0x000079097fa4499a in read () from /usr/lib/libc.so.12
(gdb) bt
#0  0x000079097fa4499a in read () from /usr/lib/libc.so.12
#1  0x0000000001402012 in main ()
(gdb) quit
A debugging session is active.

       Inferior 1 [process 2655] will be detached.

Quit anyway? (y or n) y
Detaching from program: /usr/bin/script, process 2655
[Inferior 1 (process 2655) detached]
$

You can kill it normally and then the child also exits.


Incorrect. The child process _does not_ exit--it hangs around
in ___lwp_park60().

-RVP


Home | Main Index | Thread Index | Old Index