tech@mandoc.bsd.lv
 help / color / Atom feed
* mdocml-1.13.4 regression: mandoc -a with pipes
@ 2016-07-22 20:10 Christian Neukirchen
  2016-09-05 13:27 ` Christian Neukirchen
  0 siblings, 1 reply; 2+ messages in thread
From: Christian Neukirchen @ 2016-07-22 20:10 UTC (permalink / raw)
  To: tech

Hi,

I noticed a regression in the last mdocml release:
The use of mandoc -a is broken when input comes from a pipe.

$ cat /usr/share/man/man1/mandoc.1 | mandoc -a
[1] + Stopped (signal)           cat /usr/share/man/man1/mandoc.1 | mandoc -a

mandoc gets suspended with SIGSTOP, and foregrounding is not possible.

Found on Void Linux, Linux 4.6.4, glibc 2.23, mdocml 1.13.4.

cu,
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: mdocml-1.13.4 regression: mandoc -a with pipes
  2016-07-22 20:10 mdocml-1.13.4 regression: mandoc -a with pipes Christian Neukirchen
@ 2016-09-05 13:27 ` Christian Neukirchen
  0 siblings, 0 replies; 2+ messages in thread
From: Christian Neukirchen @ 2016-09-05 13:27 UTC (permalink / raw)
  To: tech

Christian Neukirchen <chneukirchen@gmail.com> writes:

> Hi,
>
> I noticed a regression in the last mdocml release:
> The use of mandoc -a is broken when input comes from a pipe.
>
> $ cat /usr/share/man/man1/mandoc.1 | mandoc -a
> [1] + Stopped (signal)           cat /usr/share/man/man1/mandoc.1 | mandoc -a
>
> mandoc gets suspended with SIGSTOP, and foregrounding is not possible.
>
> Found on Void Linux, Linux 4.6.4, glibc 2.23, mdocml 1.13.4.

I bisected this to

Author: schwarze <schwarze>
Date:   Fri Nov 20 21:59:54 2015 +0000

    Fix multiple issues regarding process group and signal mask handling
    found by tb@ and millert@; parts of the code, in particular in tag.c,
    by millert@; OK millert@.

Interestingly, it doesn't break when I use musl libc.

I don't really understand what the code does, so help would be appreciated.

Thanks,
-- 
Christian Neukirchen  <chneukirchen@gmail.com>  http://chneukirchen.org
--
 To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-22 20:10 mdocml-1.13.4 regression: mandoc -a with pipes Christian Neukirchen
2016-09-05 13:27 ` Christian Neukirchen

tech@mandoc.bsd.lv

Archives are clonable: git clone --mirror http://inbox.vuxu.org/mandoc-tech

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.mandoc.tech


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git