Re: added flush and quiet options to script(1)

2018-07-16 Thread bijan
On 07/16/18 18:11, bijan wrote: On 07/13/18 22:35, bijan wrote: Hi tech. While trying to test liveshell[1], I noticed the script(1) from base is missing the -f option, flushing the output after each write, which is kinda critical for monitoring the output file by another process. the Linux

Re: add -f option to script(1)

2018-07-16 Thread bijan
On 07/13/18 22:35, bijan wrote: Hi tech. While trying to test liveshell[1], I noticed the script(1) from base is missing the -f option, flushing the output after each write, which is kinda critical for monitoring the output file by another process. the Linux script utility uses fflush(3) after

add -f option to script(1)

2018-07-13 Thread bijan
not sure if anything more than removing buffering operation from the stream is necessary. So here's the diff which is working for me 1: http://liveshell.43z.one/ -- Bijan Ebrahimi diff --git usr.bin/script/script.1 usr.bin/script/script.1 index f10ec2d4b..48a9d683f 100644 --- usr.bin/script/script.1

Re: on-line kernel debugging

2018-02-02 Thread bijan
On 02/02/18 04:31, David Gwynne wrote: On 28 Jan 2018, at 04:07, bijan <bijanebrah...@riseup.net> wrote: Thank you (for the quick response) and sorry if I was not as clear as I should have been! what I meant and was hoping to find was a source code debugger support, like gdb[1], where o

Re: list only names of interfaces in ifconfig.8

2018-01-28 Thread bijan
On 01/28/18 21:24, bijan wrote: Hi, Added -l argument to ifconfig to only print names of interfaces. (Maybe a lame excuse from me for being too lazy but FreeBSD supports it too) Missed the usage string, Update! >From 2d00dbc563db1f2581342cbf02a83cbb3a6a5966 Mon Sep 17 00:00:00 2001 F

list only names of interfaces in ifconfig.8

2018-01-28 Thread bijan
Hi, Added -l argument to ifconfig to only print names of interfaces. (Maybe a lame excuse from me for being too lazy but FreeBSD supports it too) Hope it helps, B.E >From dc4f0f8d85a9aa2007b47139f6d609c9830bbfc3 Mon Sep 17 00:00:00 2001 From: Bijan Ebrahimi <bijanebrah...@riseup.net

Re: on-line kernel debugging

2018-01-27 Thread bijan
2018 20:46:18 +0330, bijan wrote: does OpenBSD support on-line kernel debugging as FreeBSD does[1]? Yes, see the ddb(4) manual page. - todd

on-line kernel debugging

2018-01-27 Thread bijan
Hi! (Don't know if tech@ is the right place to ask such questions, just hope it is) does OpenBSD support on-line kernel debugging as FreeBSD does[1]? The only document I managed to find was a fairly old one[2] by QEMU over GNU/Linux but it seems kgdb(7) is removed since 6.2 (apparently for not

Re: make mpls_input take struct ifnet *ifp as an argument

2018-01-09 Thread bijan
(forwarded from misc@) Hi, while reading the changes in OpenBSD source code (hopefully to learn more), I've notice the usage of Uninitialized variable. Looks like the latest commit unintentionally removed the assignment line (sorry for the github link):