Page MenuHomePhabricator

D20054.diff
No OneTemporary

D20054.diff

diff --git a/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php b/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php
--- a/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php
+++ b/src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php
@@ -21,8 +21,13 @@
if ($language) {
$language = $this->getPygmentsLexerNameFromLanguageName($language);
+
+ // See T13224. Under Ubuntu, avoid leaving an intermedite "dash" shell
+ // process so we hit "pygmentize" directly if we have to SIGKILL this
+ // because it explodes.
+
$future = new ExecFuture(
- 'pygmentize -O encoding=utf-8 -O stripnl=False -f html -l %s',
+ 'exec pygmentize -O encoding=utf-8 -O stripnl=False -f html -l %s',
$language);
$scrub = false;

File Metadata

Mime Type
text/plain
Expires
Sat, May 18, 6:14 AM (4 w, 17 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6294110
Default Alt Text
D20054.diff (828 B)

Event Timeline